Search in sources :

Example 1 with ULONG_PTRByReference

use of com.sun.jna.platform.win32.BaseTSD.ULONG_PTRByReference in project jna by java-native-access.

the class W32FileMonitor method waitForChange.

private FileInfo waitForChange() {
    IntByReference rcount = new IntByReference();
    ULONG_PTRByReference rkey = new ULONG_PTRByReference();
    PointerByReference roverlap = new PointerByReference();
    if (!Kernel32.INSTANCE.GetQueuedCompletionStatus(port, rcount, rkey, roverlap, WinBase.INFINITE)) {
        return null;
    }
    synchronized (this) {
        return handleMap.get(new HANDLE(rkey.getValue().toPointer()));
    }
}
Also used : IntByReference(com.sun.jna.ptr.IntByReference) ULONG_PTRByReference(com.sun.jna.platform.win32.BaseTSD.ULONG_PTRByReference) PointerByReference(com.sun.jna.ptr.PointerByReference) HANDLE(com.sun.jna.platform.win32.WinNT.HANDLE)

Aggregations

ULONG_PTRByReference (com.sun.jna.platform.win32.BaseTSD.ULONG_PTRByReference)1 HANDLE (com.sun.jna.platform.win32.WinNT.HANDLE)1 IntByReference (com.sun.jna.ptr.IntByReference)1 PointerByReference (com.sun.jna.ptr.PointerByReference)1