WDF_POWER_POLICY_EVENT_CALLBACKS_INIT function (wdfdevice.h)
[Applies to KMDF and UMDF]
The WDF_POWER_POLICY_EVENT_CALLBACKS_INIT function initializes a driver's WDF_POWER_POLICY_EVENT_CALLBACKS structure.
Syntax
void WDF_POWER_POLICY_EVENT_CALLBACKS_INIT(
[out] PWDF_POWER_POLICY_EVENT_CALLBACKS Callbacks
);
Parameters
[out] Callbacks
A pointer to a driver-allocated WDF_POWER_POLICY_EVENT_CALLBACKS structure.
Return value
None
Remarks
The WDF_POWER_POLICY_EVENT_CALLBACKS_INIT function zeros the specified WDF_POWER_POLICY_EVENT_CALLBACKS structure and sets the structures Size member.
Examples
For a code example that uses WDF_POWER_POLICY_EVENT_CALLBACKS_INIT, see WdfDeviceInitSetPowerPolicyEventCallbacks.
Requirements
Requirement | Value |
---|---|
Target Platform | Universal |
Minimum KMDF version | 1.0 |
Minimum UMDF version | 2.0 |
Header | wdfdevice.h (include Wdf.h) |