11#define KERNEL_HANDLE_FLAG 0xFFFFFFFF80000000ULL
13#define KERNEL_HANDLE_FLAG 0x80000000
16#define CheckEventObject(Handle, Pointers, Handles) do \
18 PUBLIC_OBJECT_BASIC_INFORMATION ObjectInfo; \
19 Status = ZwQueryObject(Handle, ObjectBasicInformation, \
20 &ObjectInfo, sizeof ObjectInfo, NULL); \
21 ok_eq_hex(Status, STATUS_SUCCESS); \
22 ok_eq_ulong(ObjectInfo.PointerCount, Pointers); \
23 ok_eq_ulong(ObjectInfo.HandleCount, Handles); \
24 ok_eq_ulong(ObjectInfo.Attributes, 0); \
25 ok_eq_ulong(ObjectInfo.GrantedAccess, EVENT_ALL_ACCESS); \
26 ok(((ULONG_PTR)Handle & KERNEL_HANDLE_FLAG) == KERNEL_HANDLE_FLAG, \
27 "Handle %p is not a kernel handle\n", Handle); \
74 ok(Event2 !=
NULL,
"Event is NULL\n");
75 ok(EventHandle2 !=
NULL,
"EventHandle is NULL\n");
76 if (!
skip(EventHandle2 !=
NULL,
"No event\n"))
106 ok(Event2 !=
NULL,
"Event is NULL\n");
107 ok(EventHandle2 !=
NULL,
"EventHandle is NULL\n");
108 if (!
skip(EventHandle2 !=
NULL,
"No event\n"))
#define CheckEventObject(Handle, Pointers, Handles)
static VOID TestCreateEvent(PRKEVENT(NTAPI *CreateEvent)(PUNICODE_STRING, PHANDLE), PUNICODE_STRING EventName, EVENT_TYPE Type)
#define ok_eq_hex(value, expected)
#define ok_eq_long(value, expected)
#define ok_eq_uint(value, expected)
LONG NTAPI KeReadStateEvent(IN PKEVENT Event)
#define KmtEndSeh(ExpectedStatus)
NTSYSAPI NTSTATUS NTAPI ZwClose(_In_ HANDLE Handle)
enum _EVENT_TYPE EVENT_TYPE
PKEVENT NTAPI IoCreateSynchronizationEvent(IN PUNICODE_STRING EventName, IN PHANDLE EventHandle)
PKEVENT NTAPI IoCreateNotificationEvent(IN PUNICODE_STRING EventName, IN PHANDLE EventHandle)
#define RTL_CONSTANT_STRING(s)
_Out_ PHANDLE EventHandle