On Thu Dec 8 11:16:32 2022 +0000, Rémi Bernon wrote:
Waiting on the event here will never do anything useful. It's just been created, it's not set, and you haven't passed the `bool_async_handler` to anything that could set it asynchronously. You need to pass `bool_async_handler` first to the async operation through `IAsyncOperation_boolean_put_Completed`, then wait on the event to make sure the operation has completed (and check `WaitForSingleObject` return to be sure).
Whoops, I forgot to add a check for WaitForSingleObject. Added in v5.