#include <k32.h>
#include <debug.h>
Go to the source code of this file.
◆ NDEBUG
◆ CreateMemoryResourceNotification()
HANDLE WINAPI CreateMemoryResourceNotification |
( |
IN MEMORY_RESOURCE_NOTIFICATION_TYPE |
NotificationType | ) |
|
Definition at line 23 of file resntfy.c.
24{
29
31 {
34 }
35
38 L"\\KernelObjects\\HighMemoryCondition" :
39 L"\\KernelObjects\\LowMemoryCondition");
40
42 &EventName,
43 0,
46
51 {
54 }
55
57}
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
#define EVENT_QUERY_STATE
#define InitializeObjectAttributes(p, n, a, r, s)
NTSYSAPI VOID NTAPI RtlInitUnicodeString(PUNICODE_STRING DestinationString, PCWSTR SourceString)
NTSTATUS NTAPI NtOpenEvent(OUT PHANDLE EventHandle, IN ACCESS_MASK DesiredAccess, IN POBJECT_ATTRIBUTES ObjectAttributes)
DWORD BaseSetLastNTError(IN NTSTATUS Status)
_In_ WDF_SPECIAL_FILE_TYPE NotificationType
◆ QueryMemoryResourceNotification()
Definition at line 64 of file resntfy.c.
66{
69
70 if ((ResourceNotificationHandle) &&
72 (ResourceState))
73 {
76 &EventInfo,
77 sizeof(EventInfo),
80 {
83 }
84
86 }
87 else
88 {
90 }
91
93}
#define INVALID_HANDLE_VALUE
NTSTATUS NTAPI NtQueryEvent(IN HANDLE EventHandle, IN EVENT_INFORMATION_CLASS EventInformationClass, OUT PVOID EventInformation, IN ULONG EventInformationLength, OUT PULONG ReturnLength OPTIONAL)