ReleasePowerRelationship

This functions releases the HANDLE returned from RegisterPowerRelationship.

DWORD ReleasePowerRelationship(
  HANDLE h
);

Parameters

  • h
    [in] The handle returned from RegisterPowerRelationship.

Return Values

  • ERROR_SUCCESS
    The relationship was removed correctly.
  • ERROR_INVALID_PARAMETER
    Invalid handle.

Remarks

Deregistering a power relationship has the side effect of deregistering the child device with the Power Manager. If the child device exits while the relationship is outstanding, the call will result in an ERROR_INVALID_PARAMETER when it attempts to release the relationship handle.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Pm.h.
Link Library: Coredll.lib.

See Also

RegisterPowerRelationship

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.