mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 14:24:45 +00:00
ntoskrnl.exe: Implement IoCreateNotificationEvent.
This commit is contained in:
parent
e72a16b57f
commit
e740eaee08
2 changed files with 26 additions and 10 deletions
|
@ -4075,16 +4075,6 @@ NTSTATUS WINAPI IoCreateFile(HANDLE *handle, ACCESS_MASK access, OBJECT_ATTRIBUT
|
|||
create_options, ea_buffer, ea_length, file_type, parameters, options, NULL);
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* IoCreateNotificationEvent (NTOSKRNL.EXE.@)
|
||||
*/
|
||||
PKEVENT WINAPI IoCreateNotificationEvent(UNICODE_STRING *name, HANDLE *handle)
|
||||
{
|
||||
FIXME( "stub: %s %p\n", debugstr_us(name), handle );
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* __chkstk (NTOSKRNL.@)
|
||||
*/
|
||||
|
|
|
@ -231,6 +231,32 @@ PKEVENT WINAPI IoCreateSynchronizationEvent( UNICODE_STRING *name, HANDLE *ret_h
|
|||
return event;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* IoCreateNotificationEvent (NTOSKRNL.EXE.@)
|
||||
*/
|
||||
PKEVENT WINAPI IoCreateNotificationEvent( UNICODE_STRING *name, HANDLE *ret_handle )
|
||||
{
|
||||
OBJECT_ATTRIBUTES attr;
|
||||
HANDLE handle;
|
||||
KEVENT *event;
|
||||
NTSTATUS ret;
|
||||
|
||||
TRACE( "(%s %p)\n", debugstr_us(name), ret_handle );
|
||||
|
||||
InitializeObjectAttributes( &attr, name, 0, 0, NULL );
|
||||
ret = NtCreateEvent( &handle, EVENT_ALL_ACCESS, &attr, NotificationEvent, TRUE );
|
||||
if (ret) return NULL;
|
||||
|
||||
if (kernel_object_from_handle( handle, ExEventObjectType, (void**)&event ))
|
||||
{
|
||||
NtClose(handle);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
*ret_handle = handle;
|
||||
return event;
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
* KeSetEvent (NTOSKRNL.EXE.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue