The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jun 3, 2016
Post comments count 0
Post likes count 1

Why does SetFileValidData fail even though I enabled the SE_MANAGE_VOLUME_NAME privilege?

Raymond Chen

It's all in the timing.

Jun 2, 2016
Post comments count 0
Post likes count 1

How can I tell whether a file is on a removable drive, a fixed drive, or a remote drive?

Raymond Chen

Beware of the volume mount point.

Jun 1, 2016
Post comments count 0
Post likes count 1

Why does SHGetKnownFolderPath fail when impersonating?

Raymond Chen

Because there's a special way to call it for impersonation.

May 31, 2016
Post comments count 0
Post likes count 1

The chain reaction started when a customer’s line of business application doesn’t work with UNCs

Raymond Chen

Fighting over a registry key.

May 30, 2016
Post comments count 0
Post likes count 1

Printing the name and position of the focused item on the desktop

Raymond Chen

You already know how to get the view, so ask the view.

May 27, 2016
Post comments count 0
Post likes count 1

Diagnosing a crash in unloaded_something.dll

Raymond Chen

Find out what used to be loaded there.

May 26, 2016
Post comments count 0
Post likes count 1

Debugging session: Which of the many things happening in this single line of code is the one that crashed?

Raymond Chen

Let's go to the disassembly.

May 25, 2016
Post comments count 0
Post likes count 2

How can I generate a stack backtrace that is independent of ASLR?

Raymond Chen

Use module offsets rather than absolute addresses.

May 24, 2016
Post comments count 0
Post likes count 1

How do I create a directory where people can create subdirectories but cannot mess with those created by other users?

Raymond Chen

Advanced ACL games.