Re: call win32 api from java
Re: call win32 api from java
Wheres Freaky Chris when you need him! :P
Re: call win32 api from java
I recomend using JNA, Website Here
It's much more simplistic,
Then use this sample code:
Code :
import com.sun.jna.Native;
import com.sun.jna.win32.StdCallLibrary;
public interface Kernel32 extends StdCallLibrary {
Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
short GetSystemDefaultLangID();
}
Accessing it as:
Code :
Kernel32.INSTANCE.GetSystemDefaultLangID()
If you have any questions Id be happy to explain