共用方式為


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

這個結構的大小,以位元組為單位。 將此成員設定為 sizeof (PEP_INFORMATION) 。

AcceptDeviceNotification

AcceptDeviceNotification 回呼例程的指標。 這個成員必須指向有效的回呼例程。

AcceptProcessorNotification

AcceptProcessorNotification 回呼例程的指標。 如果 PEP 尚未準備好處理來自 PoFx 的 PPM 通知,則此成員是選擇性的,而且可以是 NULL。

AcceptAcpiNotification

AcceptAcpiNotification 回呼例程的指標。 如果 PEP 尚未準備好處理 PoFx 的 ACPI 通知,則此成員是選擇性的,而且可以是 NULL。

備註

這個結構包含 PEP 所實作之數個回呼例程的指標。 PoFx 會呼叫這些例程,以將通知傳送至 PEP。

PoFxRegisterPlugin 和PoFxRegisterPluginEx 例程的 PepInformation 參數是PEP_INFORMATION結構的指標。

規格需求

需求
最低支援的用戶端 從Windows 10 開始支援。
標頭 pep_x.h (包含 Pep_x.h)

另請參閱

AcceptAcpiNotification

AcceptDeviceNotification

AcceptProcessorNotification

PoFxRegisterPlugin

PoFxRegisterPluginEx