The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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.

Hacking the law: On the role of the marriage officiant in the State of Washington
Oct 2, 2015
Post comments count 0
Post likes count 0

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

Raymond Chen
Raymond Chen

Strange rules that basically mean there are no meaningful rules.

Calling ShutdownBlockReasonCreate from my service doesn’t stop the user from shutting down
Oct 2, 2015
Post comments count 0
Post likes count 0

Calling ShutdownBlockReasonCreate from my service doesn’t stop the user from shutting down

Raymond Chen
Raymond Chen

That's not how to do it from a service.

If you can’t remember the exact text of a dialog box (so you can search for it), you can ask the Internet
Oct 1, 2015
Post comments count 0
Post likes count 0

If you can’t remember the exact text of a dialog box (so you can search for it), you can ask the Internet

Raymond Chen
Raymond Chen

Search ju-jitsu, v2.