The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Oct 2, 2015
Post comments count 0
Post likes count 1

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

Raymond Chen

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

Oct 1, 2015
Post comments count 0
Post likes count 1

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

Search ju-jitsu, v2.

Sep 30, 2015
Post comments count 0
Post likes count 1

Why can’t I create a file equal to the available disk space?

Raymond Chen

Gotta save the metadata somewhere.

Sep 29, 2015
Post comments count 0
Post likes count 1

The trust relationship between this workstation and the primary domain failed, what does this mean?

Raymond Chen

The secret password every machine has.

Sep 28, 2015
Post comments count 0
Post likes count 1

What happens to lost timer messages if I don’t process them fast enough?

Raymond Chen

They never existed.

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

Why doesn’t my keyboard hook get called for keyboard messages I manually posted?

Raymond Chen

Because that's not input.

Sep 24, 2015
Post comments count 0
Post likes count 1

How do I call SetTimer with a timer ID that is guaranteed not to conflict with any other timer ID?

Raymond Chen

Put it in its own window.

Sep 23, 2015
Post comments count 0
Post likes count 1

It rather involved being on the other side of this airtight hatchway: Elevation from Administrator to SYSTEM

Raymond Chen

But you're already there.

Sep 22, 2015
Post comments count 0
Post likes count 2

Thanks for informing us that you know about the compatibility issue in your application, so we don’t have to fix it

Raymond Chen

Now that you let us know that you know, you can deal with it yourself.