Class WTypes2.LPWSTRByReference
- java.lang.Object
-
- com.sun.jna.PointerType
-
- com.sun.jna.ptr.ByReference
-
- com.github.markusbernhardt.proxy.jna.win.WTypes2.LPWSTRByReference
-
- All Implemented Interfaces:
com.sun.jna.NativeMapped
- Enclosing class:
- WTypes2
public static class WTypes2.LPWSTRByReference extends com.sun.jna.ptr.ByReferenceA pointer to a LPWSTR.LPWSTR is itself a pointer, so a pointer to an LPWSTR is really a pointer-to-pointer. This class hides this complexity and also takes care of memory disposal.
The class is useful where the Windows function returns a result into a variable of type
LPWSTR*. The class currently has no setters so it isn't useful for the opposite case, i.e. where a Windows function accepts aLPWSTR*as its input.
-
-
Constructor Summary
Constructors Constructor Description LPWSTRByReference()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()Memory disposal.private com.sun.jna.PointergetPointerToString()java.lang.StringgetString()Gets the string as pointed to by the LPWSTR ornullif there's no LPWSTR.com.sun.jna.platform.win32.WTypes.LPWSTRgetValue()Gets the LPWSTR from this pointer.
-
-
-
Method Detail
-
getValue
public com.sun.jna.platform.win32.WTypes.LPWSTR getValue()
Gets the LPWSTR from this pointer. In general its a lot more convenient simply to usegetString.- Returns:
- LPWSTR from this pointer
-
getString
public java.lang.String getString()
Gets the string as pointed to by the LPWSTR ornullif there's no LPWSTR.- Returns:
- LPWSTR from this pointer
-
getPointerToString
private com.sun.jna.Pointer getPointerToString()
-
finalize
protected void finalize() throws java.lang.ThrowableMemory disposal.- Overrides:
finalizein classjava.lang.Object- Throws:
java.lang.Throwable- Something went wrong when cleaning up the memory.
-
-