Class Winnt.LPWSTR

  • All Implemented Interfaces:
    Native
    Enclosing class:
    Winnt

    public static class Winnt.LPWSTR
    extends de.ibapl.jnhw.util.winapi.memory.WinApiStruct32
    Wrapper for LPWSTR.

    A pointer to a null-terminated string of 16-bit Unicode characters. For more information, see Character Sets Used By Fonts.
    This type is declared in WinNT.h as follows:
    typedef WCHAR *LPWSTR;

    The wrapper for a byte buffer. The position of the buffer is always 0! It must be reset to 0 if changed. The limit of the buffer is always amount of valid bytes in the buffer and must be set if the amount of valid bytes changed.
    • Constructor Detail

      • LPWSTR

        public LPWSTR​(int elementLength,
                      AbstractNativeMemory.SetMem setMem)
        Creates space for a Wide String (16 bit)
        Parameters:
        elementLength -
    • Method Detail

      • clear

        public void clear()
      • getUnicodeString

        public String getUnicodeString​(int elementLength)
        return the NULL terminated string @baseaddress
        Returns: