PcUnregisterAdapterPnpManagement function

The PcUnregisterAdapterPnpManagement function unregisters the audio adapter's PnP management interface from the PortCls class driver. It is used to support PnP rebalance.

Syntax

PORTCLASSAPI NTSTATUS PcUnregisterAdapterPnpManagement(
  PDEVICE_OBJECT DeviceObject
);

Parameters

DeviceObject

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

Return value

The PcUnregisterAdapterPnpManagement function returns STATUS_SUCCESS if the function call was successful. Otherwise, it returns the appropriate error code.

Remarks

The PcUnregisterAdapterPnpManagement function unregisters a driver's PnP management interface that was registered with PortCls by using the PcUnregisterAdapterPnpManagement function.

This function must only be called if the PnP management interface for the adapter was previously registered with PortCls using PcRegisterAdapterPnpManagement.

Portcls uses PcRegisterAdapterPnpManagement and PcUnregisterAdapterPnpManagement to support PNP rebalance.

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

Requirements

   
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

PcRegisterAdapterPnpManagement