kernel32: Add SetFileCompletionNotificationModes implementation.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=38960 Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
18e074b0f3
commit
139cc95610
|
@ -1065,13 +1065,20 @@ BOOL WINAPI SetEndOfFile( HANDLE hFile )
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
* SetFileCompletionNotificationModes (KERNEL32.@)
|
* SetFileCompletionNotificationModes (KERNEL32.@)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI SetFileCompletionNotificationModes( HANDLE handle, UCHAR flags )
|
BOOL WINAPI SetFileCompletionNotificationModes( HANDLE file, UCHAR flags )
|
||||||
{
|
{
|
||||||
FIXME("%p %x - stub\n", handle, flags);
|
FILE_IO_COMPLETION_NOTIFICATION_INFORMATION info;
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
IO_STATUS_BLOCK io;
|
||||||
|
NTSTATUS status;
|
||||||
|
|
||||||
|
info.Flags = flags;
|
||||||
|
status = NtSetInformationFile( file, &io, &info, sizeof(info), FileIoCompletionNotificationInformation );
|
||||||
|
if (status == STATUS_SUCCESS) return TRUE;
|
||||||
|
SetLastError( RtlNtStatusToDosError(status) );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue