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?

Jader Dias
  • 88,211
  • 155
  • 421
  • 625

1 Answers1

1

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

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536