native methods or FindWindow, PostMessage, and Get/WriteProfile* (Registry stuff)
First I suppose I should ask if there is a Java equivalent to FindWindow, PostMessage, and Get/WriteProfile* (Registry stuff). I think someone in the past asked about the registry and I replied that I thought it would make Java non-portable.
If there is no equivalent, I suppose that native methods would be the solution, but apparently I'm not passing the correct datatypes.
For "LPCTSTR a pointer to a null-terminated string"
I've tried Java's String, byte[], and char[] (with 0 as the last value of the byte and char arrays).
I get java.lang.UnsatisfiedLinkError.
Of course "HWND" may not be acceptable as a Java long either.
Asside: Is it possible to obtain registry information from dos batch commands (within a batch file)? Perhaps even by calling a windows function from dos running in a window.