The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jun 19, 2017
Post comments count 0
Post likes count 1

How do I set the initial directory of the File Open dialog to a virtual directory?

Raymond Chen

Use the IFileDialog::SetDefaultFolder method.

Jun 16, 2017
Post comments count 0
Post likes count 1

Stuff my father-in-law says: On baking bread

Raymond Chen

Three hours.

Jun 16, 2017
Post comments count 0
Post likes count 1

Combining the work queue of distinct events, order not important, with an auto-reset event

Raymond Chen

Combining two solutions into a bigger solution.

Jun 15, 2017
Post comments count 0
Post likes count 1

Creating an automatic-reset event from WaitOnAddress

Raymond Chen

Completing the quartet.

Jun 14, 2017
Post comments count 0
Post likes count 1

Creating a manual-reset event from WaitOnAddress

Raymond Chen

A diversion, in the form of a different exercise.

Jun 13, 2017
Post comments count 0
Post likes count 1

Creating a semaphore with a maximum count from WaitOnAddress

Raymond Chen

The exercises continue.

Jun 12, 2017
Post comments count 0
Post likes count 1

Creating a semaphore from WaitOnAddress

Raymond Chen

More exercises.

Jun 9, 2017
Post comments count 0
Post likes count 1

The case of the longjmp from nowhere trying to open a registry key

Raymond Chen

Close your eyes and jump.

Jun 8, 2017
Post comments count 0
Post likes count 1

What will GetLastError() return after a failed InitOnceExecuteOnce?

Raymond Chen

Whatever you tell it to.