Skip to content

Commit 1cbff53

Browse files
committed
Update ntpoapi.h
1 parent b4942a1 commit 1cbff53

File tree

1 file changed

+2
-22
lines changed

1 file changed

+2
-22
lines changed

phnt/include/ntpoapi.h

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#define MonitorCapabilities 40 // (kernel-mode only)
6868
#define SessionPowerInit 41 // (kernel-mode only)
6969
#define SessionDisplayState 42 // (kernel-mode only)
70-
#define PowerRequestCreate 43 // in: COUNTED_REASON_CONTEXT, out: HANDLE
70+
#define PowerRequestCreate 43 // in: REASON_CONTEXT, out: HANDLE
7171
#define PowerRequestAction 44 // in: POWER_REQUEST_ACTION
7272
#define GetPowerRequestList 45 // out: POWER_REQUEST_LIST
7373
#define ProcessorInformationEx 46 // in: USHORT, out: PROCESSOR_POWER_INFORMATION
@@ -96,7 +96,7 @@
9696
#define FirmwareTableInformationRegistered 69 // (kernel-mode only)
9797
#define SetShutdownSelectedTime 70 // NULL
9898
#define SuspendResumeInvocation 71 // (kernel-mode only)
99-
#define PlmPowerRequestCreate 72 // in: COUNTED_REASON_CONTEXT, out: HANDLE
99+
#define PlmPowerRequestCreate 72 // in: REASON_CONTEXT, out: HANDLE
100100
#define ScreenOff 73 // NULL (PowerMonitorOff)
101101
#define CsDeviceNotification 74 // (kernel-mode only)
102102
#define PlatformRole 75 // POWER_PLATFORM_ROLE
@@ -147,26 +147,6 @@ typedef struct _SYSTEM_HIBERFILE_INFORMATION
147147
LARGE_INTEGER Mcb[1];
148148
} SYSTEM_HIBERFILE_INFORMATION, *PSYSTEM_HIBERFILE_INFORMATION;
149149

150-
#define POWER_REQUEST_CONTEXT_NOT_SPECIFIED DIAGNOSTIC_REASON_NOT_SPECIFIED
151-
152-
// wdm
153-
typedef struct _COUNTED_REASON_CONTEXT
154-
{
155-
ULONG Version;
156-
ULONG Flags;
157-
union
158-
{
159-
struct
160-
{
161-
UNICODE_STRING ResourceFileName;
162-
USHORT ResourceReasonId;
163-
ULONG StringCount;
164-
_Field_size_(StringCount) PUNICODE_STRING ReasonStrings;
165-
};
166-
UNICODE_STRING SimpleString;
167-
};
168-
} COUNTED_REASON_CONTEXT, *PCOUNTED_REASON_CONTEXT;
169-
170150
typedef enum _POWER_REQUEST_TYPE_INTERNAL // POWER_REQUEST_TYPE
171151
{
172152
PowerRequestDisplayRequiredInternal,

0 commit comments

Comments
 (0)