PcUnregisterAdapterPowerManagement 函式 (portcls.h)

PcUnregisterAdapterPowerManagement 函式會從 PortCls 類別驅動程式取消註冊音訊配接器的電源管理介面。 PcUnregisterAdapterPowerManagement 函式可在 Windows 7 和更新版本的 Windows 中使用。

語法

PORTCLASSAPI NTSTATUS PcUnregisterAdapterPowerManagement(
  [in] PDEVICE_OBJECT pDeviceObject
);

參數

[in] pDeviceObject

指定代表適配卡功能裝置物件的 DEVICE_OBJECT 結構的指標。

傳回值

如果函數調用成功, PcUnregisterAdapterPowerManagement 函式會傳回STATUS_SUCCESS。 否則,它會傳回適當的錯誤碼。

備註

PcUnregisterAdapterPowerManagement 函式會取消註冊使用 PcRegisterAdapterPowerManagement 函式向 PortCls 註冊的驅動程序電源管理介面。 PcUnregisterAdapterPowerManagement 可協助系統避免在卸除配接器驅動程式時提出電源變更要求。 只有在先前已向 PortCls 註冊適配卡的電源管理介面時,才能呼叫此函式。

規格需求

需求
最低支援的用戶端 適用於 Windows 7 和更新版本的 Windows。
目標平台 Universal
標頭 portcls.h (包含 Portcls.h)
程式庫 Portcls.lib
IRQL PASSIVE_LEVEL。

另請參閱

DEVICE_OBJECT

PcRegisterAdapterPowerManagement