Can I call Win32 API from within Java code?
posted 14 years ago
Hello. I tried to understand Java from some books and the Java documentation but I was unable to find the answer of the question "Can I call Win32 APIs from JNI interface?". I know how to call other native methods which we write and specify that they could be called by Java(we use javah.exe and some other #include statements for C/C++). Microsoft has not explicitly specified that their Win32 API classes could be called from within Java. So my question is that can we call those API simply by using System.loadLibrary() method. I am looking forward for your replies. Thanks in advance. Can somebody explain the process with example, i will be so thankful to you.