The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Feb 22, 2024
Post comments count 1
Post likes count 1

Gotcha: Don’t forget to shut down your dispatcher queues

Raymond Chen

Keep that dispatcher queue controller around, or you'll never be able to clean up.

Feb 21, 2024
Post comments count 1
Post likes count 1

Once your object reaches final_release, you are committed to destructing it (eventually)

Raymond Chen

Don't try to resurrect it.

Feb 20, 2024
Post comments count 3
Post likes count 1

Microspeak: Closing out, duping out

Raymond Chen

Making work items no longer appear on a query.

Feb 19, 2024
Post comments count 9
Post likes count 5

Why can’t I trigger a manual blue screen crash by injecting the magic key sequence?

Raymond Chen

It has to come from the physical keyboard, because that's the code that detects the magic key sequence.

Feb 16, 2024
Post comments count 17
Post likes count 9

If you’re just going to sit there doing nothing, at least do nothing correctly

Raymond Chen

How to be inert.

Feb 15, 2024
Post comments count 3
Post likes count 8

Registered command lines are just command lines, not a programming language

Raymond Chen

If you want a programming language, you know where to find one.

Feb 14, 2024
Post comments count 6
Post likes count 4

Functions that return the size of a required buffer generally return upper bounds, not tight bounds

Raymond Chen

An over-estimate is better than an under-estimate.

Feb 13, 2024
Post comments count 3
Post likes count 3

It rather involved being on the other side of this airtight hatchway: Attacking a domain administrator from the local administrator

Raymond Chen

If you pwn the machine, then you pwn everyone on the machine.

Feb 12, 2024
Post comments count 1
Post likes count 3

How can I get the Windows Runtime HttpClient to display a basic authentication prompt?

Raymond Chen

You need to give it some help finding the right window.