The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Jul 23, 2018
Post comments count 0
Post likes count 1

How do I trigger an EN_UPDATE notification for all of my edit controls when the user’s locale information changes?

Raymond Chen

It's your edit control, so you can do it yourself.

Jul 20, 2018
Post comments count 0
Post likes count 2

How can I get the actual window procedure address and not a thunk?

Raymond Chen

Match the character set of the top-level window procedure.

Jul 19, 2018
Post comments count 0
Post likes count 1

When is it appropriate to use the current processor number as an optimization hint?

Raymond Chen

Try not to let it slip out from under you.

Jul 18, 2018
Post comments count 0
Post likes count 1

Sure I can protect data with CryptProtectData, but how do I remove the ability to decrypt it?

Raymond Chen

You can put a secret in the nonce, though it's not really a secret by that point.

Jul 17, 2018
Post comments count 0
Post likes count 15

What is this vmmem program that is using up all my CPU and memory?

Raymond Chen

That's where your virtual machine resource usage goes.

Jul 16, 2018
Post comments count 0
Post likes count 1

Internal training video on expense reports contains inconsistency: Alert the media!

Raymond Chen

Was this a test? I'm not sure.

Jul 13, 2018
Post comments count 0
Post likes count 1

Warning: Ruler is not to scale

Raymond Chen

Inches enlarged to show texture.

Jul 13, 2018
Post comments count 0
Post likes count 1

When generating a random password, the result must still be a valid string

Raymond Chen

Invalid strings can't round trip through multiple encodings.

Jul 12, 2018
Post comments count 0
Post likes count 1

Why does a non-recursive Read­Directory­ChangesW still report files created inside subdirectories?

Raymond Chen

Because they do affect the top-level directory.