The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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.

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

Security through lying

Raymond Chen

Factual errors make it harder for the good guys.

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

How long do I have to keep the SECURITY_ATTRIBUTES and SECURITY_DESCRIPTOR structures valid after using them to create a file?

Raymond Chen

Once CreateFile returns, they aren't needed any more.

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

Why did the friendly name for the Network Service account change?

Raymond Chen

Nobody promised it wouldn't.