views:

88

answers:

1

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?

+1  A: 

Wild guess: try calling SetThreadExecutionState(ES_CONTINUOUS) on the same thread that called WaveInOpen.

Hans Passant
This method returns that the thread execution state is already equal to ES_CONTINUOUS before and after the WaveInOpen call
Jader Dias
Well, worth a try. You are looking at driver hacking next, no idea how to tackle that.
Hans Passant