0

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(???);
}
dovaogedot
  • 21
  • 1
  • 3
  • 1
    http://stackoverflow.com/questions/606820/is-there-a-java-library-to-access-the-native-windows-api Have a look at this post – Wander3r Sep 11 '16 at 17:38
  • @SaileshD so I can't do this with pure Java (or it is very difficult) without third-party library? – dovaogedot Sep 15 '16 at 18:49

0 Answers0