I have a 1394 device, and on resuming from sleep in Vista, call the 1394 bus driver from my EvtDeviceD0Entry callback to get the current bus generation count. The call returns STATUS_SUCCESS, but the value is set to 0xffffffff which is not a valid generation count.
The documentation for the EvtDeviceD0Entry callback says “The callback function must perform any operations that are needed to make the device fully operational, such as loading firmware or enabling device capabilities that are disabled when the device is in a low-power state.”, but the i/o operations I need to achieve this fail due to the incorrect generation count.
Can anyone make any suggestions as to why this is happening, or if I should be doing something else?
Thanks