The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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

Dubious security vulnerability: Luring somebody into your lair

Raymond Chen

Constructing an insecure directory.

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

The tadpole operators explained

Raymond Chen

Combining two things in an unintuitive way.

May 25, 2015
Post comments count 0
Post likes count 1

New C++ experimental feature: The tadpole operators

Raymond Chen

Give it a whirl.

May 22, 2015
Post comments count 0
Post likes count 1

So you decided to call SHFileOperation from a service, at least remember to disable copy hooks

Raymond Chen

Mitigating the disaster.

May 21, 2015
Post comments count 0
Post likes count 1

If you can set enforcement for a rule, you can set up lack of enforcement

Raymond Chen

An exeption to a rule is just another rule.

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

When you inadvertently become a collector of something you really aren't all that into

Raymond Chen

As I was heading home at the end of the day, I ran into one of my colleagues who was also going home, and he was carrying a Star Wars-themed metal lunchbox similar to this one. For those who didn't grow up in the United States, these metal lunchboxes are the type of things elementary school children use to carry their lunch to school. I remarked, "Nice lunchbox." My colleague explained, "Yeah, I sort of ended up as the lunchbox guy. It started when somebody gave me a lunchbox as a semi-humorous gift, and I kept it on my shelf. Then other people saw that I had a metal lunchbox and concluded, 'Oh, he must collec...

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

It rather involved being on the other side of this airtight hatchway: Code injection via QueueUserAPC

Raymond Chen

But you already pwn that thread.

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

Determining programmatically whether a file was built with LAA, ASLR, DEP, or OS-assisted /GS

Raymond Chen

Sucking the flags out of the header.

May 15, 2015
Post comments count 0
Post likes count 1

MapGenericMask is just a convenience function for converting generic access to specific access, according to the instructions you provide

Raymond Chen

It's useful on the server side, not the client side.