This function establishes dynamic parent and child or bus and client driver relationship. It is available for drivers that manage power for a set of dependent child and client drivers.
HANDLE RegisterPowerRelationship( PVOID pvParent, PVOID pvChild, PPOWER_CAPABILITIES pCaps, DWORD Flags );
[in] LPWSTR device name of the parent or bus, for example, NDS0:.
[in] LPWSTR device name of the child or client, for example, NE20001.
[in] Pointer to the POWER_CAPABILITIES of the child device. Set to NULL if not used.
[in] Set to POWER_NAME to indicate that pvParent and pvChild are device names.