How to pass wide strings in Java calling the MessageBoxW function in user32 lib
问题 I am currently struggling to use the function MessageBoxW in Java. I have managed to successfully call the user32 library and use the MessageBoxA function. Here's my code below: package messagebox; import com.sun.jna.Library; import com.sun.jna.Native; public class MessageBox { public interface user32 extends Library { public int MessageBoxA(int something, String text, String caption, int flags); } public static void main(String[] args) { System.out.println("Program starting... Library