The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

How can I obtain the heap from which a heap block was allocated?
May 31, 2018
Post comments count 0
Post likes count 1

How can I obtain the heap from which a heap block was allocated?

Raymond Chen
Raymond Chen

You'll have to keep track of that yourself.

When you call <CODE>Open­Thread­Token</CODE> while impersonating, you have to say who is asking for the thread token
May 30, 2018
Post comments count 0
Post likes count 1

When you call Open­Thread­Token while impersonating, you have to say who is asking for the thread token

Raymond Chen
Raymond Chen

I am for you.

The alphabet, in alphabetical order, in various languages
May 29, 2018
Post comments count 0
Post likes count 0

The alphabet, in alphabetical order, in various languages

Raymond Chen
Raymond Chen

From A to Z, or beyond.

How do I get file version information from the command line?
May 29, 2018
Post comments count 0
Post likes count 1

How do I get file version information from the command line?

Raymond Chen
Raymond Chen

PowerShell does for you.

How are <CODE>BitBlt</CODE> raster opcodes calculated?
May 28, 2018
Post comments count 0
Post likes count 0

How are BitBlt raster opcodes calculated?

Raymond Chen
Raymond Chen

The complicated language of raster operation codes.

My namespace importing trick imported the same three namespaces into each top-level namespace, yet it worked?
May 25, 2018
Post comments count 0
Post likes count 1

My namespace importing trick imported the same three namespaces into each top-level namespace, yet it worked?

Raymond Chen
Raymond Chen

They are different namespaces, spelled the same.

How do I create a disabled checkbox for a listview item?
May 24, 2018
Post comments count 0
Post likes count 1

How do I create a disabled checkbox for a listview item?

Raymond Chen
Raymond Chen

A little state image magic.

If you say that your buffer can hold 200 characters, then it had better hold 200 characters
May 23, 2018
Post comments count 0
Post likes count 1

If you say that your buffer can hold 200 characters, then it had better hold 200 characters

Raymond Chen
Raymond Chen

Otherwise the mistake is on you.

Why does the install date and size of a program change roughly two days after I install it, even though no changes were made to the program in the meantime?
May 22, 2018
Post comments count 0
Post likes count 2

Why does the install date and size of a program change roughly two days after I install it, even though no changes were made to the program in the meantime?

Raymond Chen
Raymond Chen

Because the system is trying to fill in missing information.