Re: MsgWaitForSingleObject and named pipe. Which event am I getting ?

"R.Wieser" <[email protected]> Sun, 22 Mar 2026 16:01:11 +0100
Newsgroups comp.os.ms-windows.programmer.win32,alt.comp.os.windows-xp,alt.windows7.general
Organization A noiseless patient Spider
Message-ID <[email protected]>
>> HANDLE hConnectEvent = CreateEvent(NULL, TRUE, TRUE, NULL); // Manual 
>> reset
>> HANDLE hReadEvent = CreateEvent(NULL, TRUE, FALSE, NULL);
>
> Any idea why one is created set, and the other not ?  As far as I can see 
> both should be created reset.
>
> Also, any idea why they are (must be?) created as manually-reset events ?

I came across this one today :

https://www.globalnerdy.com/wp-content/uploads/2026/03/652575612_1355710716577270_799259824397935466_n.jpg

I find it rather apropriate.

By the way : My test code using non-manual resetting events, both created as 
not-set seems to work alright.

Regards,
Rudy Wieser