if (eventHandle.getPointer().getInt(0) == WEvtApi.EvtSubscribeErrors.ERROR_EVT_QUERY_RESULT_STALE) { logger.error(MISSING_EVENT_MESSAGE); } else { logger.error(RECEIVED_THE_FOLLOWING_WIN32_ERROR + eventHandle.getPointer().getInt(0));
@Override public String toString() { return String.valueOf(getPointer()); } }
handleMap.put(handle, finfo); port = klib.CreateIoCompletionPort(handle, port, handle.getPointer(), 0); if (WinBase.INVALID_HANDLE_VALUE.equals(port)) { throw new IOException("Unable to create/use I/O Completion port "
handleMap.put(handle, finfo); port = klib.CreateIoCompletionPort(handle, port, handle.getPointer(), 0); if (WinBase.INVALID_HANDLE_VALUE.equals(port)) { throw new IOException("Unable to create/use I/O Completion port "
if (eventHandle.getPointer().getInt(0) == WEvtApi.EvtSubscribeErrors.ERROR_EVT_QUERY_RESULT_STALE) { logger.error(MISSING_EVENT_MESSAGE); } else { logger.error(RECEIVED_THE_FOLLOWING_WIN32_ERROR + eventHandle.getPointer().getInt(0));
public void setValue(HANDLE h) { getPointer().setPointer(0, h != null ? h.getPointer() : null); }
private boolean isSubscribed() { return subscriptionHandle != null && subscriptionHandle.getPointer() != null; }
public HKEY getValue() { Pointer p = getPointer().getPointer(0); if (p == null) return null; if (WinBase.INVALID_HANDLE_VALUE.getPointer().equals(p)) return (HKEY) WinBase.INVALID_HANDLE_VALUE; HKEY h = new HKEY(); h.setPointer(p); return h; } }
public HANDLE getValue() { Pointer p = getPointer().getPointer(0); if (p == null) { return null; } if (WinBase.INVALID_HANDLE_VALUE.getPointer().equals(p)) { return WinBase.INVALID_HANDLE_VALUE; } HANDLE h = new HANDLE(); h.setPointer(p); return h; } }
public void setValue(HANDLE h) { getPointer().setPointer(0, h != null ? h.getPointer() : null); }
public HKEY getValue() { Pointer p = getPointer().getPointer(0); if (p == null) return null; if (WinBase.INVALID_HANDLE_VALUE.getPointer().equals(p)) return (HKEY) WinBase.INVALID_HANDLE_VALUE; HKEY h = new HKEY(); h.setPointer(p); return h; } }
public HANDLE getValue() { Pointer p = getPointer().getPointer(0); if (p == null) { return null; } if (WinBase.INVALID_HANDLE_VALUE.getPointer().equals(p)) { return WinBase.INVALID_HANDLE_VALUE; } HANDLE h = new HANDLE(); h.setPointer(p); return h; } }
/** * Instantiates a new hicon from a handle - this is required since * in Win32 API HANDLE and HICON are the same, whereas in Java they * are not, so in order to "cast" the handle we need this * constructor * * @param handle The {@link HANDLE} to cast */ public HICON(HANDLE handle) { this(handle.getPointer()); }
private boolean isSubscribed() { return subscriptionHandle != null && subscriptionHandle.getPointer() != null; }