共用方式為


PEP_INFORMATION結構 (pepfx.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。

PepInformation 參數 PoFxRegisterPluginPoFxRegisterPluginEx 例程是 PEP_INFORMATION 結構的指標。

要求

要求 價值
最低支援的用戶端 從 Windows 10 開始支援。
標頭 pepfx.h (include Pep_x.h)

另請參閱

AcceptAcpiNotification

AcceptDeviceNotification

AcceptProcessorNotification

PoFxRegisterPlugin

PoFxRegisterPluginEx