WDF_PNPPOWER_EVENT_CALLBACKS_INIT function (wdfdevice.h)

[Applies to KMDF and UMDF]

The WDF_PNPPOWER_EVENT_CALLBACKS_INIT function initializes a driver's WDF_PNPPOWER_EVENT_CALLBACKS structure.

Syntax

void WDF_PNPPOWER_EVENT_CALLBACKS_INIT(
  [out] PWDF_PNPPOWER_EVENT_CALLBACKS Callbacks
);

Parameters

[out] Callbacks

A pointer to a driver-allocated WDF_PNPPOWER_EVENT_CALLBACKS structure.

Return value

None

Remarks

The WDF_PNPPOWER_EVENT_CALLBACKS_INIT function zeros the specified WDF_PNPPOWER_EVENT_CALLBACKS structure and sets the structure's Size member.

Examples

For a code example that uses WDF_PNPPOWER_EVENT_CALLBACKS_INIT, see WdfDeviceInitSetPnpPowerEventCallbacks.

Requirements

Requirement Value
Target Platform Universal
Minimum KMDF version 1.0
Minimum UMDF version 2.0
Header wdfdevice.h (include Wdf.h)