use of com.sun.jna.platform.win32.WinNT.MEMORY_BASIC_INFORMATION in project jna by java-native-access.
the class Kernel32Test method testVirtualQueryEx.
public void testVirtualQueryEx() {
HANDLE selfHandle = Kernel32.INSTANCE.GetCurrentProcess();
MEMORY_BASIC_INFORMATION mbi = new MEMORY_BASIC_INFORMATION();
SIZE_T bytesRead = Kernel32.INSTANCE.VirtualQueryEx(selfHandle, Pointer.NULL, mbi, new SIZE_T(mbi.size()));
assertTrue(bytesRead.intValue() > 0);
}
Aggregations