The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Maintaining Notepad is not a full-time job, but it’s not an empty job either
May 21, 2018
Post comments count 0
Post likes count 4

Maintaining Notepad is not a full-time job, but it’s not an empty job either

Raymond Chen
Raymond Chen

Adding features by removing code.

Misdirected security vulnerability: Malformed file results in memory corruption
May 18, 2018
Post comments count 0
Post likes count 1

Misdirected security vulnerability: Malformed file results in memory corruption

Raymond Chen
Raymond Chen

Who did the corrupting?

How do I create a SAL annotation for a structure with a variable-length array?
May 17, 2018
Post comments count 0
Post likes count 1

How do I create a SAL annotation for a structure with a variable-length array?

Raymond Chen
Raymond Chen

The _Field_size_ annotation does the trick.

C++ namespace parlor tricks
May 16, 2018
Post comments count 0
Post likes count 1

C++ namespace parlor tricks

Raymond Chen
Raymond Chen

Shuffling names around.

Why is Windows Compressed Folders (Zip folders) support stuck at the turn of the century?
May 15, 2018
Post comments count 0
Post likes count 3

Why is Windows Compressed Folders (Zip folders) support stuck at the turn of the century?

Raymond Chen
Raymond Chen

Because that's where we last left it.

For a brief period, Windows 95 could run Windows 3.1 in a virtual machine
May 14, 2018
Post comments count 0
Post likes count 6

For a brief period, Windows 95 could run Windows 3.1 in a virtual machine

Raymond Chen
Raymond Chen

The ultimate in backward compability.

Why can’t FindWindowEx find another program’s window by name?
May 11, 2018
Post comments count 0
Post likes count 1

Why can’t FindWindowEx find another program’s window by name?

Raymond Chen
Raymond Chen

Are you sure it's there?

On the difficulty of getting pixel-perfect layout in Win32 dialog templates
May 10, 2018
Post comments count 0
Post likes count 2

On the difficulty of getting pixel-perfect layout in Win32 dialog templates

Raymond Chen
Raymond Chen

That's not what it's for.

Why does my shortcut to a nonexistent file end up with spaces changed to underscores?
May 9, 2018
Post comments count 0
Post likes count 1

Why does my shortcut to a nonexistent file end up with spaces changed to underscores?

Raymond Chen
Raymond Chen

Trying to make the best of a bad situation.