mirror of
https://github.com/reactos/reactos.git
synced 2024-06-19 19:28:22 +00:00
[NTOS:PO] Give the power device type to PopAddRemoveSysCapsCallback function
This commit is contained in:
parent
0be4e4aa6d
commit
dff8b93ee2
|
@ -33,6 +33,19 @@
|
|||
#define POTRACE(x, fmt, ...) DPRINT(fmt, ##__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
typedef enum _POP_POLICY_DEVICE_TYPE
|
||||
{
|
||||
PolicyDeviceSystemButton = 0,
|
||||
PolicyDeviceThermalZone = 1,
|
||||
PolicyDeviceBattery = 2,
|
||||
PolicyDeviceMemory = 3,
|
||||
PolicyInitiatePowerActionAPI = 4,
|
||||
PolicySetPowerStateAPI = 5,
|
||||
PolicyImmediateDozeS4 = 6,
|
||||
PolicySystemIdle = 7,
|
||||
PolicyDeviceMax = 8,
|
||||
} POP_POLICY_DEVICE_TYPE;
|
||||
|
||||
typedef struct _PO_HIBER_PERF
|
||||
{
|
||||
ULONGLONG IoTicks;
|
||||
|
|
|
@ -410,7 +410,7 @@ PoInitSystem(IN ULONG BootPhase)
|
|||
(PVOID)&GUID_DEVICE_SYS_BUTTON,
|
||||
IopRootDeviceNode->PhysicalDeviceObject->DriverObject,
|
||||
PopAddRemoveSysCapsCallback,
|
||||
NULL,
|
||||
(PVOID)(ULONG_PTR)PolicyDeviceSystemButton,
|
||||
&NotificationEntry);
|
||||
if (!NT_SUCCESS(Status))
|
||||
return FALSE;
|
||||
|
@ -421,7 +421,7 @@ PoInitSystem(IN ULONG BootPhase)
|
|||
(PVOID)&GUID_DEVICE_LID,
|
||||
IopRootDeviceNode->PhysicalDeviceObject->DriverObject,
|
||||
PopAddRemoveSysCapsCallback,
|
||||
NULL,
|
||||
(PVOID)(ULONG_PTR)PolicyDeviceSystemButton,
|
||||
&NotificationEntry);
|
||||
return NT_SUCCESS(Status);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue