PEP_INFORMATION结构(pep_x.h)

PEP_INFORMATION 结构指定平台扩展插件(PEP)用于从 Windows 电源管理框架(PoFx)接收通知的接口。

语法

typedef struct _PEP_INFORMATION {
  USHORT                 Version;
  USHORT                 Size;
  PPEPCALLBACKNOTIFYDPM  AcceptDeviceNotification;
  PPEPCALLBACKNOTIFYPPM  AcceptProcessorNotification;
  PPEPCALLBACKNOTIFYACPI AcceptAcpiNotification;
} PEP_INFORMATION, *PPEP_INFORMATION;

成员

Version

此结构的当前版本号。 将此成员设置为PEP_INFORMATION_VERSION。

Size

此结构的大小(以字节为单位)。 将此成员设置为 sizeofPEP_INFORMATION)。

AcceptDeviceNotification

指向 AcceptDeviceNotification 回调例程的指针。 需要此成员才能指向有效的回调例程。

AcceptProcessorNotification

指向 AcceptProcessorNotification 回调例程的指针。 此成员是可选的,如果 PEP 未准备好处理 PoFx 中的 PPM 通知,则可以为 NULL。

AcceptAcpiNotification

指向 AcceptAcpiNotification 回调例程的指针。 此成员是可选的,如果 PEP 未准备好处理来自 PoFx 的 ACPI 通知,则可以为 NULL。

言论

此结构包含指向 PEP 实现的多个回调例程的指针。 PoFx 调用这些例程向 PEP 发送通知。

PoFxRegisterPluginPepInformation 参数,PoFxRegisterPluginEx 例程是指向 PEP_INFORMATION 结构的指针。

要求

要求 价值
最低支持的客户端 从 Windows 10 开始支持。
标头 pep_x.h (包括 Pep_x.h)

另请参阅

AcceptAcpiNotification

AcceptDeviceNotification

AcceptProcessorNotification

PoFxRegisterPlugin

PoFxRegisterPluginEx