This method of the DllLib class copies a string into a native memory block in Unicode format. The memory block is allocated by using the Win32 function CoTaskMemAlloc.
public static int stringToCoTaskMemUni(String s);
Returns a pointer to the block that contains the specified string in Unicode format.
s | The string to copy. |
You can use the freeCoTaskMem method to release the block from Java.