diff --git a/dlls/api-ms-win-core-kernel32-legacy-l1-1-0/api-ms-win-core-kernel32-legacy-l1-1-0.spec b/dlls/api-ms-win-core-kernel32-legacy-l1-1-0/api-ms-win-core-kernel32-legacy-l1-1-0.spec index f4b90505f51..7c196c932fd 100644 --- a/dlls/api-ms-win-core-kernel32-legacy-l1-1-0/api-ms-win-core-kernel32-legacy-l1-1-0.spec +++ b/dlls/api-ms-win-core-kernel32-legacy-l1-1-0/api-ms-win-core-kernel32-legacy-l1-1-0.spec @@ -45,7 +45,7 @@ @ stub RaiseFailFastException @ stdcall RegisterWaitForSingleObject(ptr long ptr ptr long long) kernel32.RegisterWaitForSingleObject @ stdcall SetConsoleTitleA(str) kernel32.SetConsoleTitleA -@ stub SetFileCompletionNotificationModes +@ stdcall SetFileCompletionNotificationModes(long long) kernel32.SetFileCompletionNotificationModes @ stdcall SetHandleCount(long) kernel32.SetHandleCount @ stdcall SetMailslotInfo(long long) kernel32.SetMailslotInfo @ stdcall SetVolumeLabelW(wstr wstr) kernel32.SetVolumeLabelW diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c index bcb21c99bdd..e43829ea67e 100644 --- a/dlls/kernel32/file.c +++ b/dlls/kernel32/file.c @@ -1040,6 +1040,16 @@ BOOL WINAPI SetEndOfFile( HANDLE hFile ) return FALSE; } +/************************************************************************** + * SetFileCompletionNotificationModes (KERNEL32.@) + */ +BOOL WINAPI SetFileCompletionNotificationModes( HANDLE handle, UCHAR flags ) +{ + FIXME("%p %x - stub\n", handle, flags); + SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + return FALSE; +} + /*********************************************************************** * SetFileInformationByHandle (KERNEL32.@) diff --git a/dlls/kernel32/kernel32.spec b/dlls/kernel32/kernel32.spec index a0c812391f7..8e97cdb6f7a 100644 --- a/dlls/kernel32/kernel32.spec +++ b/dlls/kernel32/kernel32.spec @@ -1393,7 +1393,7 @@ # @ stub SetFileAttributesTransactedW @ stdcall SetFileAttributesW(wstr long) # @ stub SetFileBandwidthReservation -# @ stub SetFileCompletionNotificationModes +@ stdcall SetFileCompletionNotificationModes(long long) @ stdcall SetFileInformationByHandle(long long ptr long) # @ stub SetFileIoOverlappedRange @ stdcall SetFilePointer(long long ptr long) diff --git a/include/winbase.h b/include/winbase.h index e20a6753bb0..cc1081eeb22 100644 --- a/include/winbase.h +++ b/include/winbase.h @@ -2460,6 +2460,7 @@ WINBASEAPI VOID WINAPI SetFileApisToOEM(void); WINBASEAPI BOOL WINAPI SetFileAttributesA(LPCSTR,DWORD); WINBASEAPI BOOL WINAPI SetFileAttributesW(LPCWSTR,DWORD); #define SetFileAttributes WINELIB_NAME_AW(SetFileAttributes) +WINBASEAPI BOOL WINAPI SetFileCompletionNotificationModes(HANDLE,UCHAR); WINBASEAPI BOOL WINAPI SetFileInformationByHandle(HANDLE,FILE_INFO_BY_HANDLE_CLASS,LPVOID,DWORD); WINBASEAPI DWORD WINAPI SetFilePointer(HANDLE,LONG,LPLONG,DWORD); WINBASEAPI BOOL WINAPI SetFilePointerEx(HANDLE,LARGE_INTEGER,LARGE_INTEGER*,DWORD);