ReleasePowerRelationship (Windows CE 5.0)

Send Feedback

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

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.