The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Oct 13, 2015
Post comments count 0
Post likes count 2

Why do Saturation and Luminance go all the way to 240, but Hue goes only to 239? And why 239 anyway?

Raymond Chen

Mapping a floating point number to a byte.

Oct 12, 2015
Post comments count 0
Post likes count 1

How do I get the user-customed name of My Computer or Recycle Bin?

Raymond Chen

Ask the shell. That is, after all, how the shell displays it.

Oct 9, 2015
Post comments count 0
Post likes count 1

Learning about farm animals from my niece

Raymond Chen

Things you don't learn in biology class.

Oct 9, 2015
Post comments count 0
Post likes count 1

How does a shell namespace extension provide icons for virtual items that track the standard icons set by the user’s file associations?

Raymond Chen

Forward to the standard implementation.

Oct 8, 2015
Post comments count 0
Post likes count 1

What happens if you call VirtualAlloc to MEM_COMMIT a page you never MEM_RESERVE?

Raymond Chen

It is not guaranteed to succeed.

Oct 7, 2015
Post comments count 0
Post likes count 1

How do we change permissions on a share as fast as Explorer does it?

Raymond Chen

First, make sure you're changing the permissions on a share.

Oct 6, 2015
Post comments count 0
Post likes count 1

First, try reading the error message, episode 4: Even programmers see error messages without reading them

Raymond Chen

Here we go again.

Oct 5, 2015
Post comments count 0
Post likes count 1

How do I obtain the comment for a share?

Raymond Chen

NetShareGetInfo.

Oct 2, 2015
Post comments count 0
Post likes count 1

Hacking the law: On the role of the marriage officiant in the State of Washington

Raymond Chen

Strange rules that basically mean there are no meaningful rules.