From the moment we call Win API's WaveInOpen
method the system won't sleep nor hibernate until this stream is closed.
Is there any workaround for this?
views:
88answers:
1
+1
A:
Wild guess: try calling SetThreadExecutionState(ES_CONTINUOUS) on the same thread that called WaveInOpen.
Hans Passant
2010-09-20 12:10:25
This method returns that the thread execution state is already equal to ES_CONTINUOUS before and after the WaveInOpen call
Jader Dias
2010-09-20 17:53:23
Well, worth a try. You are looking at driver hacking next, no idea how to tackle that.
Hans Passant
2010-09-20 18:01:42