Función NetDeviceInitSetPowerPolicyEventCallbacks (netdevice.h)

La función NetDeviceInitSetPowerPolicyEventCallbacks establece devoluciones de llamada de eventos de directiva de energía opcionales durante la inicialización del dispositivo para un controlador cliente.

Sintaxis

void NetDeviceInitSetPowerPolicyEventCallbacks(
  [_Inout_] PWDFDEVICE_INIT                               DeviceInit,
  [_In_]    const NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS *Callbacks
);

Parámetros

[_Inout_] DeviceInit

Puntero a un objeto WDFDEVICE_INIT que el controlador cliente recibió en su rutina EvtDriverDeviceAdd .

[_In_] Callbacks

Puntero a un controlador cliente asignado e inicializado NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS estructura.

Valor devuelto

None

Observaciones

Inicialice el objeto WDFDEVICE_INIT llamando a NetDeviceInitConfig antes de llamar a esta función. Inicialice la estructura de NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS llamando a NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS_INIT y rellene los punteros a las devoluciones de llamada que implementa el controlador de cliente.

Requisitos

Requisito Value
Cliente mínimo compatible Windows 10, versión 2004
Plataforma de destino Universal
Encabezado netdevice.h (include netadaptercx.h)
Library netadaptercxstub.lib
IRQL PASSIVE_LEVEL

Consulte también

Configuración de la administración de energía

NET_DEVICE_POWER_POLICY_EVENT_CALLBACKS