The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

The MoveSecurityAttributes policy affects only how Explorer recalculates ACLs when a file is moved; everybody else is on their own
Oct 14, 2015
Post comments count 0
Post likes count 1

The MoveSecurityAttributes policy affects only how Explorer recalculates ACLs when a file is moved; everybody else is on their own

Raymond Chen
Raymond Chen

GUI policies tend not to apply to command line tools.

Why do Saturation and Luminance go all the way to 240, but Hue goes only to 239? And why 239 anyway?
Oct 13, 2015
Post comments count 0
Post likes count 1

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

Raymond Chen
Raymond Chen

Mapping a floating point number to a byte.

How do I get the user-customed name of My Computer or Recycle Bin?
Oct 12, 2015
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

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

Learning about farm animals from my niece
Oct 9, 2015
Post comments count 0
Post likes count 0

Learning about farm animals from my niece

Raymond Chen
Raymond Chen

Things you don't learn in biology class.

How does a shell namespace extension provide icons for virtual items that track the standard icons set by the user’s file associations?
Oct 9, 2015
Post comments count 0
Post likes count 0

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
Raymond Chen

Forward to the standard implementation.

What happens if you call VirtualAlloc to MEM_COMMIT a page you never MEM_RESERVE?
Oct 8, 2015
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

It is not guaranteed to succeed.

How do we change permissions on a share as fast as Explorer does it?
Oct 7, 2015
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

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

First, try reading the error message, episode 4: Even programmers see error messages without reading them
Oct 6, 2015
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

Here we go again.

How do I obtain the comment for a share?
Oct 5, 2015
Post comments count 0
Post likes count 0

How do I obtain the comment for a share?

Raymond Chen
Raymond Chen

NetShareGetInfo.