The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

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.

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

Const methods don’t prevent a method from having side effects

Raymond Chen

Though they shouldn't if you know what's good for you, but the compiler doesn't know whether you know what's good for you.

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

How do I change the password of another user without having to sign in as them?

Raymond Chen

You can do it from the password change screen.

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

Stop merging if you need to cherry-pick

Raymond Chen

An opposing view from the VSTS team.