// ucmtcpciportcontroller.h
NTSTATUS UcmTcpciPortControllerCreate(
WDFDEVICE WdfDevice,
PUCMTCPCI_PORT_CONTROLLER_CONFIG Config,
PWDF_OBJECT_ATTRIBUTES Attributes,
UCMTCPCIPORTCONTROLLER *PortControllerObject
);
View the official Windows Driver Kit DDI referenceNo description available.
Creates a port controller object to register with UcmTcpciCx.
WdfDeviceA handle to a framework device object that the client driver received in the previous call to WdfDeviceCreate.
ConfigA pointer to the UCMTCPCI_PORT_CONTROLLER_CONFIG that is initialized by calling UCMTCPCI_PORT_CONTROLLER_CONFIG_INIT. This value cannot be NULL.
AttributesA pointer to a WDF_OBJECT_ATTRIBUTES structure that contains driver-supplied attributes for the new object. This parameter is optional and can be WDF_NO_OBJECT_ATTRIBUTES.
PortControllerObjectA pointer to a location that receives a handle to the new port controller object.
(NTSTATUS) The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method may return an appropriate NTSTATUS error code.
| Return code | Description |
|---|---|
| STATUS_INVALID_DEVICE_REQUEST | The handle to a framework device object is invalid. |
| STATUS_INFO_LENGTH_MISMATCH | Invalid size for the structure pointed to by Config or Config->Capabilities. Must be size of UCMTCPCI_PORT_CONTROLLER_CONFIG or UCMTCPCI_PORT_CONTROLLER_CAPABILITIES, respectively. |
UCMTCPCI_PORT_CONTROLLER_CONFIG