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?
Asked
Active
Viewed 136 times
1

Jader Dias
- 88,211
- 155
- 421
- 625
1 Answers
1
Wild guess: try calling SetThreadExecutionState(ES_CONTINUOUS) on the same thread that called WaveInOpen.

Hans Passant
- 922,412
- 146
- 1,693
- 2,536
-
This method returns that the thread execution state is already equal to ES_CONTINUOUS before and after the WaveInOpen call – Jader Dias Sep 20 '10 at 17:53
-
1Well, worth a try. You are looking at driver hacking next, no idea how to tackle that. – Hans Passant Sep 20 '10 at 18:01