I need to get information about system drives using WinAPI. On MSDN I found functin DWORD WINAPI GetLogicalDrives(void);
located in kernel32.dll
.
Can I call it without using JNA/JNI? How should I declare this function in Java?
Like:
static {
System.load("C:/Windows/System32/kernel32.dll");
}
native SomeClass GetLogicalDrives(???);
public static void main(String[] args) {
SomeClass info = GetLogicalDrives(???);
}