IPortClsPower::UnregisterAdapterPowerManagement 方法 (portcls.h)

方法 UnregisterAdapterPowerManagement 使用 PortCls 取消注册适配器的电源管理接口。

语法

NTSTATUS UnregisterAdapterPowerManagement(
  [in] PDEVICE_OBJECT _DeviceObject
);

参数

[in] _DeviceObject

指定指向 DEVICE_OBJECT 结构的指针,该结构表示适配器的功能设备对象。

返回值

如果调用成功,该方法 UnregisterAdapterPowerManagement 将返回STATUS_SUCCESS。 否则,它将返回相应的错误代码。

注解

方法 UnregisterAdapterPowerManagement 取消注册由 IPortClsPower::RegisterAdapterPowerManagement 方法注册的适配器的电源管理接口。

要求

要求
最低受支持的客户端 在 Windows 7 及更高版本的 Windwows 中可用。
目标平台 通用
标头 portcls.h (包括 Portcls.h)
IRQL PASSIVE_LEVEL。

另请参阅

DEVICE_OBJECT

IPortClsPower

IPortClsPower::RegisterAdapterPowerManagement