IPortClsPnp::RegisterAdapterPnpManagement method (portcls.h)
The RegisterAdapterPowerManagement
method registers the PnP management interface of the adapter with PortCls.
Syntax
NTSTATUS RegisterAdapterPnpManagement(
[in] PUNKNOWN pUnknown,
[in] PDEVICE_OBJECT DeviceObject
);
Parameters
[in] pUnknown
Specifies a pointer to IUnknown of IAdapterPnpManagement.
[in] DeviceObject
Specifies a pointer to a DEVICE_OBJECT structure that represents the functional device object of the adapter.
Return value
The RegisterAdapterPowerManagement
method returns STATUS_SUCCESS if the call is successful. Otherwise, it returns the appropriate error code.
Remarks
When the RegisterAdapterPowerManagement
method registers the PnP management interface for the adapter with PortCls, it allows the adapter driver to be notified of PnP state change events.
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) |
IRQL | PASSIVE_LEVEL |