The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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.

Feb 9, 2024
Post comments count 25
Post likes count 12

On the virtues of the trailing comma

Raymond Chen

A more uniform appearance comes with its own benefits beyond aesthetics.

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

How do I suppress the error box that appears when a LoadLibrary fails?

Raymond Chen

They don't appear often, but they do appear occasionally.

Feb 7, 2024
Post comments count 4
Post likes count 2

Why doesn’t my program get fancy drag/drop effects in high contrast mode with CLSID_Drag­Drop­Helper?

Raymond Chen

You have to upgrade your manifest.