UcmTcpciPortControllerCreate - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ucmtcpciportcontroller.h

NTSTATUS UcmTcpciPortControllerCreate(
  WDFDEVICE                        WdfDevice,
  PUCMTCPCI_PORT_CONTROLLER_CONFIG Config,
  PWDF_OBJECT_ATTRIBUTES           Attributes,
  UCMTCPCIPORTCONTROLLER           *PortControllerObject
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ucmtcpciportcontroller-ucmtcpciportcontrollercreate)

UcmTcpciPortControllerCreate function

Description

Creates a port controller object to register with UcmTcpciCx.

Parameters

WdfDevice

A handle to a framework device object that the client driver received in the previous call to WdfDeviceCreate.

Config

A pointer to the UCMTCPCI_PORT_CONTROLLER_CONFIG that is initialized by calling UCMTCPCI_PORT_CONTROLLER_CONFIG_INIT. This value cannot be NULL.

Attributes

A 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.

PortControllerObject

A pointer to a location that receives a handle to the new port controller object.

Return value

(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.

See also

EVT_WDF_DRIVER_DEVICE_ADD

UCMTCPCI_PORT_CONTROLLER_CONFIG

WdfDeviceCreate