ReactOS 0.4.15-dev-5664-g3bf4ef6
ioevent.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
Include dependency graph for ioevent.c:

Go to the source code of this file.

Functions

PKEVENT NTAPI IopCreateEvent (IN PUNICODE_STRING EventName, IN PHANDLE EventHandle, IN EVENT_TYPE Type)
 
PKEVENT NTAPI IoCreateNotificationEvent (IN PUNICODE_STRING EventName, IN PHANDLE EventHandle)
 
PKEVENT NTAPI IoCreateSynchronizationEvent (IN PUNICODE_STRING EventName, IN PHANDLE EventHandle)
 

Function Documentation

◆ IoCreateNotificationEvent()

PKEVENT NTAPI IoCreateNotificationEvent ( IN PUNICODE_STRING  EventName,
IN PHANDLE  EventHandle 
)

Definition at line 70 of file ioevent.c.

72{
73 /* Call the internal API */
75}
@ NotificationEvent
PKEVENT NTAPI IopCreateEvent(IN PUNICODE_STRING EventName, IN PHANDLE EventHandle, IN EVENT_TYPE Type)
Definition: ioevent.c:19
_Out_ PHANDLE EventHandle
Definition: iofuncs.h:857

Referenced by START_TEST().

◆ IoCreateSynchronizationEvent()

PKEVENT NTAPI IoCreateSynchronizationEvent ( IN PUNICODE_STRING  EventName,
IN PHANDLE  EventHandle 
)

Definition at line 82 of file ioevent.c.

84{
85 /* Call the internal API */
87}
@ SynchronizationEvent

Referenced by InitializeGlobalData(), and START_TEST().

◆ IopCreateEvent()

PKEVENT NTAPI IopCreateEvent ( IN PUNICODE_STRING  EventName,
IN PHANDLE  EventHandle,
IN EVENT_TYPE  Type 
)

Definition at line 19 of file ioevent.c.

22{
27 PAGED_CODE();
28
29 /* Initialize the object attributes */
31 EventName,
33 NULL,
34 NULL);
35
36 /* Create the event */
37 Status = ZwCreateEvent(&Handle,
40 Type,
41 TRUE);
42 if (!NT_SUCCESS(Status)) return NULL;
43
44 /* Get a handle to it */
46 0,
49 (PVOID*)&Event,
50 NULL);
51 if (!NT_SUCCESS(Status))
52 {
54 return NULL;
55 }
56
57 /* Dereference the extra count, and return the handle */
60 return Event;
61}
#define PAGED_CODE()
Type
Definition: Type.h:7
LONG NTSTATUS
Definition: precomp.h:26
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:36
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
ULONG Handle
Definition: gdb_input.c:15
Status
Definition: gdiplustypes.h:25
#define OBJ_KERNEL_HANDLE
Definition: winternl.h:231
#define OBJ_OPENIF
Definition: winternl.h:229
#define EVENT_ALL_ACCESS
Definition: isotest.c:82
#define InitializeObjectAttributes(p, n, a, r, s)
Definition: reg.c:106
#define KernelMode
Definition: asm.h:34
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
POBJECT_TYPE ExEventObjectType
Definition: event.c:18
NTSTATUS NTAPI ObReferenceObjectByHandle(IN HANDLE Handle, IN ACCESS_MASK DesiredAccess, IN POBJECT_TYPE ObjectType, IN KPROCESSOR_MODE AccessMode, OUT PVOID *Object, OUT POBJECT_HANDLE_INFORMATION HandleInformation OPTIONAL)
Definition: obref.c:494
#define ObDereferenceObject
Definition: obfuncs.h:203

Referenced by IoCreateNotificationEvent(), and IoCreateSynchronizationEvent().