Latest posts
- Why is there a long delay between a thread exiting and the WaitForSingleObject returning?Apr 15, 2026Raymond Chen
Maybe it didn't really exit. The post Why is there a long delay between a thread exiting and the <CODE>WaitForSingleObject</CODE> returning? appeared first on The Old New Thing.
- Why was there a red telephone at every receptionist desk?Apr 14, 2026Raymond Chen
Not a direct line to Bill Gates's office. The post Why was there a red telephone at every receptionist desk? appeared first on The Old New Thing.
- Finding a duplicated item in an array of N integers in the range 1 to N − 1Apr 13, 2026Raymond Chen
Taking advantage of special characteristics of the array. The post Finding a duplicated item in an array of <VAR>N</VAR> integers in the range 1 to <VAR>N</VAR> − 1 appeared first on The Old New Thing.
- How do you add or remove a handle from an active WaitForMultipleObjects?, part 2Apr 10, 2026Raymond Chen
Waiting for the waiting thread to acknowledge the change. The post How do you add or remove a handle from an active <CODE>WaitForMultipleObjects</CODE>?, part 2 appeared first on The Old New Thing.
- How do you add or remove a handle from an active WaitForMultipleObjects?Apr 09, 2026Raymond Chen
You can't, but you can cooperate with the other thread. The post How do you add or remove a handle from an active <CODE>WaitForMultipleObjects</CODE>? appeared first on The Old New Thing.
- How do you add or remove a handle from an active MsgWaitForMultipleObjects?Apr 08, 2026Raymond Chen
You can't, but you can arrange for the waiter to do it for you. The post How do you add or remove a handle from an active <CODE>MsgWaitForMultipleObjects</CODE>? appeared first on The Old New Thing.
- Were there any Windows 3.1 programs that were so incompatible with Windows 95 that there was no point trying to patch them?Apr 07, 2026Raymond Chen
The permanently ineligible list. The post Were there any Windows 3.1 programs that were so incompatible with Windows 95 that there was no point trying to patch them? appeared first on The Old New Thing.
- Learning to read C++ compiler errors: Illegal use of -> when there is no -> in sightApr 06, 2026Raymond Chen
If the compiler is complaining about things you didn't write, find out who wrote them. The post Learning to read C++ compiler errors: Illegal use of <TT>-></TT> when there is no <TT>-></TT> in sight appeared first on The Old New Thing.
- How can I use ReadDirectoryChangesW to know when someone is copying a file out of the directory?Apr 03, 2026Raymond Chen
File copying is not a fundamental operation, nor is it even detectable at the file system layer. The post How can I use <CODE>ReadDirectoryChangesW</CODE> to know when someone is copying a file out of the directory? appeared first on The Old New Thing.
- Why doesn’t the system let you declare your own messages to have the same semantics as WM_COPYDATA?Apr 02, 2026Raymond Chen
Tempting but misleading. The post Why doesn’t the system let you declare your own messages to have the same semantics as <CODE>WM_<WBR>COPYDATA</CODE>? appeared first on The Old New Thing.