src/java.base/windows/classes/sun/nio/fs/WindowsNativeDispatcher.java

Print this page

        

*** 35,44 **** --- 35,55 ---- class WindowsNativeDispatcher { private WindowsNativeDispatcher() { } /** + * HANDLE CreateEvent( + * LPSECURITY_ATTRIBUTES lpEventAttributes, + * BOOL bManualReset, + * BOOL bInitialState, + * PCTSTR lpName + * ); + */ + static native long CreateEvent(boolean bManualReset, boolean bInitialState) + throws WindowsException; + + /** * HANDLE CreateFile( * LPCTSTR lpFileName, * DWORD dwDesiredAccess, * DWORD dwShareMode, * LPSECURITY_ATTRIBUTES lpSecurityAttributes,
*** 1039,1048 **** --- 1050,1078 ---- int filter, long bytesReturnedAddress, long pOverlapped) throws WindowsException; + + /** + * CancelIo( + * HANDLE hFile + * ) + */ + static native void CancelIo(long hFile) throws WindowsException; + + /** + * GetOverlappedResult( + * HANDLE hFile, + * LPOVERLAPPED lpOverlapped, + * LPDWORD lpNumberOfBytesTransferred, + * BOOL bWait + * ); + */ + static native int GetOverlappedResult(long hFile, long lpOverlapped) + throws WindowsException; + /** * BackupRead( * HANDLE hFile, * LPBYTE lpBuffer, * DWORD nNumberOfBytesToRead,