PoUnregisterPowerSettingCallback routine

The PoUnregisterPowerSettingCallback routine unregisters a power-setting callback routine that a driver previously registered by calling the PoRegisterPowerSettingCallback routine.

Syntax


NTSTATUS PoUnregisterPowerSettingCallback(
  _Inout_ PVOID Handle
);

Parameters

Handle [in, out]

A handle to a callback routine that a driver registered by calling PoRegisterPowerSettingCallback.

Return value

PoUnregisterPowerSettingCallback returns one of the following:

Return codeDescription
STATUS_SUCCESS

The callback routine was unregistered.

STATUS_INVALID_PARAMETER

The Handle value is not a valid handle to a power setting callback routine.

 

Remarks

A driver calls PoUnregisterPowerSettingCallback to unregister a power setting callback routine that the driver previously registered by calling PoRegisterPowerSettingCallback.

A driver must call PoUnregisterPowerSettingCallback to unregister each callback routine that it previously registered. All callback routines registered by a driver should be unregistered in the Unload routine of the driver.

Requirements

Target platform

Universal

Version

Available starting with Windows Vista.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

NtosKrnl.lib

DLL

NtosKrnl.exe

IRQL

PASSIVE_LEVEL

See also

PoRegisterPowerSettingCallback

 

 

Send comments about this topic to Microsoft

Show: