Raymond Chen

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

Post by this author

When can a thread receive window messages?

Everybody who has messed with window messaging knows that GetMessage and PeekMessage retrieve queued messages, which are dispatched to windows via DispatchMessage. Most people also know that GetMessage and PeekMessage will also dispatch nonqueued messages. (All pending nonqueued messages are dispatched, then the first queued message is ...

Deleted but not yet forgotten

What happens when you delete a file while it is open?

The suburbs make you fat, more researchers conclude

Two legs good - four wheels bad. (With apologies to George Orwell.) Researchers link increase car use with obesity. Each hour spent in a car was associated with a 6 percent increase in the likelihood of obesity and each half-mile walked per day reduced those odds by nearly 5 percent, the researchers found. A study last ...

Do not underestimate the power of the game Deer Hunter

During the run-up to Windows XP Service Pack 2 Beta in December of last year, there was a list of five bugs that the release management team decided were so critical that they were going to slip the beta until those bugs got fixed. The third bug on the list: Deer Hunter 4 won't run. Deer Hunter has the power to stop a beta...

An easy way to determine whether you have a particular file permission

Sometimes you might want to determine whether you can do something without actually doing it. For example, you might want to know whether you have a particular permission in a directory, say permission to delete files from it. One way is to retrieve the ACL and then check whether the current user has the desired permission. The AccessCheck ...

My first death threat

Actual feedback submitted to the microsoft.com web site many years ago. id: 13726 Date: 1996-07-29 17:27:41.997 Name: *********** Email: ************* Area: Windows 95 Comments: PLEASE read this entire email as it is quite serious. I just discovered today that in the Windows 95 operating system, there are no switches, command line...

Need to add 1.5kg and 350g?

Need to add 1.5kg and 350g? Don't take any chances. Go to a Certified Metrication Specialist...

The dreaded "main" threading model

A relic from the days before multi-threading...

Letter carriers rebel

Letter carriers in both Sweden and Scotland have taken to refusing to deliver political advertisements from parties they personally find offensive. This isn't quite the stunning synchronicity as it may appear at first glance: Europe is gearing up for a continent-wide election...

What does SHGFI_USEFILEATTRIBUTES mean?

One of the flags you can pass to the SHGetFileInfo function is SHGFI_USEFILEATTRIBUTES. What does this flag mean? It means, "Do not access the disk. Pretend that the file/directory exists, and that its file attributes are what I passed as the dwFileAttributes parameter. Do this regardless of whether it actually exists or not." You...