I\'ve successfully used JNA to call a couple of Windows API functions but I get stuck at this one
GetVolumePathNamesForVolumeName
The full C declaration is:<
Using my version:
Change the return value of getPathNames()
method, from:
return Arrays.toString(pathNames);
to
return new String(pathNames);
In my test application, you can just:
String[] points = getPathNames().split("\u0000"); //split by Unicode NULL
for(String s: points) System.out.println("mount: " + s);
Edited: this post will be updated into my previous post