PcRegisterAdapterPnpManagement function (portcls.h)

The PcRegisterAdapterPnpManagement function registers the adapter's PnP-management interface with the PortCls system driver. It is used to support PnP rebalance.

Syntax

PORTCLASSAPI NTSTATUS PcRegisterAdapterPnpManagement(
       PUNKNOWN       Unknown,
  [in] PDEVICE_OBJECT DeviceObject
);

Parameters

Unknown

Pointer to an adapter driver object's IUnknown interface. The PortCls system driver queries this object for its IAdapterPnpManagement interface.

[in] DeviceObject

Specifies a pointer to a DEVICE_OBJECT structure that represents the functional device object of the adapter.

Return value

PcRegisterAdapterPnpManagement returns STATUS_SUCCESS if the call was successful. Otherwise, it returns an appropriate error code.

Remarks

Portcls uses PcRegisterAdapterPnpManagement and PcUnregisterAdapterPnpManagement to support PNP rebalance.

For more information, see Implement PnP Rebalance for PortCls Audio Drivers.

Requirements

Requirement Value
Minimum supported client Available in Windows 10, version 1511 and later versions of Windows.
Target Platform Universal
Header portcls.h (include Portcls.h)
Library Portcls.lib
IRQL PASSIVE_LEVEL

See also

DEVICE_OBJECT

IAdapterPnpManagement

Implement PnP Rebalance for PortCls Audio Drivers

PcUnregisterAdapterPnpManagement