Hi All,
I set OID_PNP_SET_POWER through the following code from my application.

pSetOid->Oid = OID_PNP_SET_POWER ;
bRet = DeviceIoControl(g_hAdapter, IOCTL_NDISUIO_SET_OID_VALUE,
pSetOid, sizeof(NDISUIO_SET_OID),0,
1024, &dwReturnedBytes, NULL);
when i go thru th debug message, i find that the miniport driver gets a
garbage device power state(pls see below). BUt i print the current power
state in my application and it gives the correct device power state.
I am using NDISUIO to talk to my miniport driver.

+MiniportSetInformation[003b0030h] Oid[fd010101h]...
0x876bfc5c: [VT3065] PowerState change [D0]=>[D-858993661]
0x876bfc5c: [VT3065] PwrEvnt Status = [00].
0x876bfc5c: [VT3065] PwrEvnt Enable = [00].

Thanks,
Maju