Search in sources :

Example 1 with SYSTEM_INFO

use of com.sun.jna.platform.win32.WinBase.SYSTEM_INFO in project jna by java-native-access.

the class Kernel32Test method testGetSystemInfo.

public void testGetSystemInfo() {
    SYSTEM_INFO lpSystemInfo = new SYSTEM_INFO();
    Kernel32.INSTANCE.GetSystemInfo(lpSystemInfo);
    assertTrue(lpSystemInfo.dwNumberOfProcessors.intValue() > 0);
}
Also used : SYSTEM_INFO(com.sun.jna.platform.win32.WinBase.SYSTEM_INFO)

Example 2 with SYSTEM_INFO

use of com.sun.jna.platform.win32.WinBase.SYSTEM_INFO in project jna by java-native-access.

the class Kernel32Test method testGetNativeSystemInfo.

public void testGetNativeSystemInfo() {
    try {
        SYSTEM_INFO lpSystemInfo = new SYSTEM_INFO();
        Kernel32.INSTANCE.GetNativeSystemInfo(lpSystemInfo);
        assertTrue(lpSystemInfo.dwNumberOfProcessors.intValue() > 0);
    } catch (UnsatisfiedLinkError e) {
    // only available under WOW64
    }
}
Also used : SYSTEM_INFO(com.sun.jna.platform.win32.WinBase.SYSTEM_INFO)

Aggregations

SYSTEM_INFO (com.sun.jna.platform.win32.WinBase.SYSTEM_INFO)2