The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

How can I get the Windows Runtime HttpClient to display a basic authentication prompt?
Feb 12, 2024
Post comments count 1
Post likes count 1

How can I get the Windows Runtime HttpClient to display a basic authentication prompt?

Raymond Chen
Raymond Chen

You need to give it some help finding the right window.

On the virtues of the trailing comma
Feb 9, 2024
Post comments count 25
Post likes count 10

On the virtues of the trailing comma

Raymond Chen
Raymond Chen

A more uniform appearance comes with its own benefits beyond aesthetics.

How do I suppress the error box that appears when a <CODE>LoadLibrary</CODE> fails?
Feb 8, 2024
Post comments count 3
Post likes count 2

How do I suppress the error box that appears when a LoadLibrary fails?

Raymond Chen
Raymond Chen

They don't appear often, but they do appear occasionally.

Why doesn’t my program get fancy drag/drop effects in high contrast mode with <CODE>CLSID_<WBR>Drag­Drop­Helper</CODE>?
Feb 7, 2024
Post comments count 4
Post likes count 1

Why doesn’t my program get fancy drag/drop effects in high contrast mode with CLSID_Drag­Drop­Helper?

Raymond Chen
Raymond Chen

You have to upgrade your manifest.

On using milliseconds as a measure of network latency
Feb 6, 2024
Post comments count 11
Post likes count 2

On using milliseconds as a measure of network latency

Raymond Chen
Raymond Chen

There's a limit to how much technology can improve.

How can I close a thread pool and cancel all work that had been queued to it?
Feb 5, 2024
Post comments count 1
Post likes count 3

How can I close a thread pool and cancel all work that had been queued to it?

Raymond Chen
Raymond Chen

You can put them in a group.

The case of the invalid parameter error from <CODE>Measure­Override</CODE>
Feb 2, 2024
Post comments count 4
Post likes count 0

The case of the invalid parameter error from Measure­Override

Raymond Chen
Raymond Chen

Chasing it back to its origin.

Using virtual memory placeholders to allocate contiguous address space for multiple purposes
Feb 1, 2024
Post comments count 7
Post likes count 1

Using virtual memory placeholders to allocate contiguous address space for multiple purposes

Raymond Chen
Raymond Chen

Can you hold this for a second?

How can I add an environment variable to a process launched via <CODE>Shell­Execute­Ex</CODE> or <CODE>IContext­Menu</CODE>?
Jan 31, 2024
Post comments count 10
Post likes count 1

How can I add an environment variable to a process launched via Shell­Execute­Ex or IContext­Menu?

Raymond Chen
Raymond Chen

Hooking into the way the Windows shell launches processes.