// ucmucsidevice.h
NTSTATUS UcmUcsiDeviceInitInitialize(
PWDFDEVICE_INIT DeviceInit
);
View the official Windows Driver Kit DDI referenceNo description available.
Initializes the WDFDEVICE_INIT provided by the framework.
DeviceInitA pointer to a framework-allocated WDFDEVICE_INIT structure.
Returns STATUS_SUCCESS if the operation succeeds. Otherwise, returns an appropriate NTSTATUS code.
The client driver must call this function after calling WdfDeviceInitSetPnpPowerEventCallbacks. This function initializes the UCSI extension (UcmUcsiCx) with the framework WDFDEVICE_INIT structure that contains pointers to PnP and power callback functions implemented by the client driver.