From 0ea089b6a87eb1aa29ded0bf3b0d388feb952dfa Mon Sep 17 00:00:00 2001 From: Moshe Vainer Date: Wed, 10 Nov 1999 19:51:01 +0000 Subject: [PATCH] Stub for GetOverlappedResult. --- files/file.c | 13 +++++++++++++ include/winbase.h | 14 ++++++++------ relay32/kernel32.spec | 2 +- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/files/file.c b/files/file.c index 296faa015fb..1c3bb00b36c 100644 --- a/files/file.c +++ b/files/file.c @@ -1107,6 +1107,19 @@ HFILE WINAPI _lclose( HFILE hFile ) return CloseHandle( hFile ) ? 0 : HFILE_ERROR; } +/*********************************************************************** + * GetOverlappedResult (KERNEL32.360) + */ +BOOL WINAPI GetOverlappedResult(HANDLE hFile,LPOVERLAPPED lpOverlapped, + LPDWORD lpNumberOfBytesTransferred, + BOOL bWait) +{ + /* Since all i/o is currently synchronuos, + * return true, assuming ReadFile/WriteFile + * have completed the operation */ + FIXME("NO Asynch I/O, assuming Read/Write succeeded\n" ); + return TRUE; +} /*********************************************************************** * ReadFile (KERNEL32.428) diff --git a/include/winbase.h b/include/winbase.h index af6677b5953..7a21b01695c 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -1588,14 +1588,15 @@ INT WINAPI GetLocaleInfoW(LCID,LCTYPE,LPWSTR,INT); DWORD WINAPI GetModuleFileNameA(HMODULE,LPSTR,DWORD); DWORD WINAPI GetModuleFileNameW(HMODULE,LPWSTR,DWORD); #define GetModuleFileName WINELIB_NAME_AW(GetModuleFileName) -HMODULE WINAPI GetModuleHandleA(LPCSTR); -HMODULE WINAPI GetModuleHandleW(LPCWSTR); +HMODULE WINAPI GetModuleHandleA(LPCSTR); +HMODULE WINAPI GetModuleHandleW(LPCWSTR); #define GetModuleHandle WINELIB_NAME_AW(GetModuleHandle) -UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR); -UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR); +BOOL WINAPI GetOverlappedResult(HANDLE,LPOVERLAPPED,LPDWORD,BOOL); +UINT WINAPI GetPrivateProfileIntA(LPCSTR,LPCSTR,INT,LPCSTR); +UINT WINAPI GetPrivateProfileIntW(LPCWSTR,LPCWSTR,INT,LPCWSTR); #define GetPrivateProfileInt WINELIB_NAME_AW(GetPrivateProfileInt) -INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR); -INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR); +INT WINAPI GetPrivateProfileSectionA(LPCSTR,LPSTR,DWORD,LPCSTR); +INT WINAPI GetPrivateProfileSectionW(LPCWSTR,LPWSTR,DWORD,LPCWSTR); #define GetPrivateProfileSection WINELIB_NAME_AW(GetPrivateProfileSection) DWORD WINAPI GetPrivateProfileSectionNamesA(LPSTR,DWORD,LPCSTR); DWORD WINAPI GetPrivateProfileSectionNamesW(LPWSTR,DWORD,LPCWSTR); @@ -1761,6 +1762,7 @@ INT WINAPI lstrcmpiA(LPCSTR,LPCSTR); INT WINAPI lstrcmpiW(LPCWSTR,LPCWSTR); #define lstrcmpi WINELIB_NAME_AW(lstrcmpi) + /* the following may be macros when compiling Wine */ #ifndef SetLastError VOID WINAPI SetLastError(DWORD); diff --git a/relay32/kernel32.spec b/relay32/kernel32.spec index 183cfb09779..62d9f67b9a7 100644 --- a/relay32/kernel32.spec +++ b/relay32/kernel32.spec @@ -375,7 +375,7 @@ import ntdll.dll 357 stdcall GetNumberOfConsoleInputEvents(long ptr) GetNumberOfConsoleInputEvents 358 stdcall GetNumberOfConsoleMouseButtons(ptr) GetNumberOfConsoleMouseButtons 359 stdcall GetOEMCP() GetOEMCP -360 stub GetOverlappedResult +360 stdcall GetOverlappedResult(long ptr ptr long) GetOverlappedResult 361 stdcall GetPriorityClass(long) GetPriorityClass 362 stdcall GetPrivateProfileIntA(str str long str) GetPrivateProfileIntA 363 stdcall GetPrivateProfileIntW(wstr wstr long wstr) GetPrivateProfileIntW