Condividi tramite


struttura PEP_INFORMATION (pepfx.h)

La struttura PEP_INFORMATION specifica l'interfaccia usata dal plug-in di estensione della piattaforma (PEP) per ricevere notifiche dal framework di risparmio energia di Windows (PoFx).

Sintassi

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

Membri

Version

Numero di versione corrente per questa struttura. Impostare questo membro su PEP_INFORMATION_VERSION.

Size

Dimensione, in byte, di questa struttura. Impostare questo membro su sizeof(PEP_INFORMATION).

AcceptDeviceNotification

Puntatore a un AcceptDeviceNotification routine di callback. Questo membro deve puntare a una routine di callback valida.

AcceptProcessorNotification

Puntatore a un AcceptProcessorNotification routine di callback. Questo membro è facoltativo e può essere NULL se il PEP non è pronto per gestire le notifiche PPM da PoFx.

AcceptAcpiNotification

Puntatore a un AcceptAcpiNotification routine di callback. Questo membro è facoltativo e può essere NULL se il PEP non è pronto a gestire le notifiche ACPI da PoFx.

Osservazioni

Questa struttura contiene puntatori a diverse routine di callback implementate dal PEP. PoFx chiama queste routine per inviare notifiche al PEP.

Il parametro PepInformation alle routine PoFxRegisterPlugin e PoFxRegisterPluginEx è un puntatore a una struttura PEP_INFORMATION.

Fabbisogno

Requisito Valore
client minimo supportato Supportato a partire da Windows 10.
intestazione pepfx.h (include Pep_x.h)

Vedere anche

AcceptAcpiNotification

AcceptDeviceNotification

AcceptProcessorNotification

PoFxRegisterPlugin

PoFxRegisterPluginEx