Re: IOCTL_POWER_XXX method calls

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



From pm.h, line 188:

typedef struct _POWER_RELATIONSHIP {
HANDLE hParent; // Handle to parent node
LPCWSTR pwsParent; // Named parent node, e.g. "NDS0:"
HANDLE hChild; // Handle to child node, returned from
RegisterPowerRelationship
LPCWSTR pwsChild; // Named child node, e.g. "NE20001"

} POWER_RELATIONSHIP, *PPOWER_RELATIONSHIP;



--
Chris Tacke
OpenNETCF Consulting
Managed Code in the Embedded World
www.opennetcf.com
--



"Mario" <alphatommy@xxxxxxxxxxx> wrote in message
news:1156446231.152804.176220@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I am trying to call IOCTL_POWER_GET and IOCTL_POWER_CAPABILITIES
methods through P/Invoke. Both methods have one of the input
parameters as POWER_RELATIONSHIP structure. How or where can I find
what are the values of these members? Thanks.

Regards,

mario



.