PcUnregisterAdapterPowerManagement function (portcls.h)

The PcUnregisterAdapterPowerManagement function unregisters the audio adapter's power management interface from the PortCls class driver. The PcUnregisterAdapterPowerManagement function is available in Windows 7 and later versions of Windows.

Syntax

PORTCLASSAPI NTSTATUS PcUnregisterAdapterPowerManagement(
  [in] PDEVICE_OBJECT pDeviceObject
);

Parameters

[in] pDeviceObject

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

Return value

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

Remarks

The PcUnregisterAdapterPowerManagement function unregisters a driver's power management interface that was registered with PortCls by using the PcRegisterAdapterPowerManagement function. PcUnregisterAdapterPowerManagement helps the system to avoid making a power change request while the adapter driver is being unloaded. This function must only be called if the power management interface for the adapter was previously registered with PortCls.

Requirements

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

See also

DEVICE_OBJECT

PcRegisterAdapterPowerManagement