Search in sources :

Example 1 with MEMORY_BASIC_INFORMATION

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);
}
Also used : SIZE_T(com.sun.jna.platform.win32.BaseTSD.SIZE_T) HANDLE(com.sun.jna.platform.win32.WinNT.HANDLE) MEMORY_BASIC_INFORMATION(com.sun.jna.platform.win32.WinNT.MEMORY_BASIC_INFORMATION)

Aggregations

SIZE_T (com.sun.jna.platform.win32.BaseTSD.SIZE_T)1 HANDLE (com.sun.jna.platform.win32.WinNT.HANDLE)1 MEMORY_BASIC_INFORMATION (com.sun.jna.platform.win32.WinNT.MEMORY_BASIC_INFORMATION)1