The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Oct 18, 2023
Post comments count 3
Post likes count 3

How can I check if I’m on a DispatcherQueue’s thread if I can’t call HasThreadAccess?

Raymond Chen

Looking at the tools you have available.

Oct 17, 2023
Post comments count 5
Post likes count 2

Microspeak: The As-Appropriate (AA) interviewer

Raymond Chen

So, how are things going so far?

Oct 16, 2023
Post comments count 9
Post likes count 3

API design principle: Reading a property or adding an event handler should not alter observable behavior

Raymond Chen

Don't punish people for looking.

Oct 13, 2023
Post comments count 0
Post likes count 2

On detecting improper use of std::enable_shared_from_this

Raymond Chen

Playing around with the standard library.

Oct 12, 2023
Post comments count 0
Post likes count 1

I created an overloaded operator for my C++/WinRT class, but it’s not working

Raymond Chen

Take a closer look at what you are overloading.

Oct 11, 2023
Post comments count 13
Post likes count 3

Why does IFileDialog still show non-filesystem folders when I pass FOS_FORCE­FILE­SYSTEM?

Raymond Chen

Because you need to pass through them to get there.

Oct 10, 2023
Post comments count 5
Post likes count 2

It rather required being on the other side of this airtight hatchway: Knowing the domain administrator password

Raymond Chen

If you give away the password, well, that's sort of on you.

Oct 9, 2023
Post comments count 2
Post likes count 2

Is there any performance advantage to marking a page read-only if I had no intention of writing to it anyway?

Raymond Chen

The CPU already figured it out.

Oct 6, 2023
Post comments count 2
Post likes count 1

A very belated improvement to the filtering of the Browse for Folder dialog so it shows only drive letters

Raymond Chen

The case of the very short UNC.