// ucmtcpcidevice.h
NTSTATUS UcmTcpciDeviceInitialize(
WDFDEVICE WdfDevice,
PUCMTCPCI_DEVICE_CONFIG Config
);
View the official Windows Driver Kit DDI referenceNo description available.
Initializes the USB Type-C Port Controller Interface framework extension (UcmTcpciCx).
WdfDeviceA handle to a framework device object that the client driver received in the previous call to WdfDeviceCreate.
ConfigA pointer to a caller-supplied UCMTCPCI_DEVICE_CONFIG structure that is initialized by calling UCMTCPCI_DEVICE_CONFIG_INIT. This value cannot be NULL.
(NTSTATUS) The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method may return an appropriate NTSTATUS error code.
| Return code | Description |
|---|---|
| STATUS_INFO_LENGTH_MISMATCH | Invalid size for the structure pointed to by Config. Must be size of UCMTCPCI_DEVICE_CONFIG. |
| STATUS_INVALID_DEVICE_STATE | The Plug and Play state of the framework device object's is uninitialized. Call UcmTcpciDeviceInitialize within the driver's implementation of EVT_WDF_DRIVER_DEVICE_ADD. |
The client driver must call UcmTcpciDeviceInitialize within the driver's implementation of EVT_WDF_DRIVER_DEVICE_ADD. This method configures the framework device object and allocates resources required, registers for PnP events, and sets up I/O targets.