The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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.

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

Why doesn’t RevertToSelf undo the most recent SetThreadToken?

Raymond Chen

It removes all impersonation; it doesn't restore it.

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

But Australian Telecom loves it!

Raymond Chen

Weighted average.

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

Wow, that article sounds an awful lot like something I would have writt… hey, wait a second

Raymond Chen

Deja vu.

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

Is Metro on fire today?

Raymond Chen

Single-serving.