DEVICE_NOTIFY_CALLBACK_ROUTINE fonction de rappel (powrprof.h)

La fonction de rappel DeviceNotifyCallbackRoutine d’une application est utilisée pour recevoir des notifications d’alimentation.

Syntaxe

DEVICE_NOTIFY_CALLBACK_ROUTINE DeviceNotifyCallbackRoutine;

ULONG DeviceNotifyCallbackRoutine(
  PVOID Context,
  ULONG Type,
  PVOID Setting
)
{...}

Paramètres

Context

Contexte fourni lors de l’inscription à la notification d’alimentation.

Type

Type d’événement d’alimentation à l’origine de cette notification.

Setting

La valeur de ce paramètre dépend du type de notification auquel vous êtes abonné.

Valeur retournée

Cette fonction retourne un code d’erreur Windows.

Configuration requise

Condition requise Valeur
Client minimal pris en charge Windows 8 [applications de bureau uniquement]
Serveur minimal pris en charge Windows Server 2012 [applications de bureau uniquement]
Plateforme cible Windows
En-tête powrprof.h

Voir aussi

DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS

PowerRegisterSuspendResumeNotification