The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

The Redmond Reality Distortion Field: Analogies involving high-performance cars, usually Ferraris
Oct 27, 2015
Post comments count 0
Post likes count 0

The Redmond Reality Distortion Field: Analogies involving high-performance cars, usually Ferraris

Raymond Chen
Raymond Chen

Vroom.

Are there any negative consequences to having a ton of files on the desktop?
Oct 26, 2015
Post comments count 0
Post likes count 0

Are there any negative consequences to having a ton of files on the desktop?

Raymond Chen
Raymond Chen

Extra work.

CoGetInterfaceAndReleaseStream does not mix with smart pointers
Oct 23, 2015
Post comments count 0
Post likes count 0

CoGetInterfaceAndReleaseStream does not mix with smart pointers

Raymond Chen
Raymond Chen

Old school meets new school.

What are the rules for CoMarshalInterface and CoUnmarshalInterface?
Oct 22, 2015
Post comments count 0
Post likes count 1

What are the rules for CoMarshalInterface and CoUnmarshalInterface?

Raymond Chen
Raymond Chen

Keeping an eye on the reference gets a little harder.

What are the rules for CoMarshalInterThreadInterfaceInStream and CoGetInterfaceAndReleaseStream?
Oct 21, 2015
Post comments count 0
Post likes count 0

What are the rules for CoMarshalInterThreadInterfaceInStream and CoGetInterfaceAndReleaseStream?

Raymond Chen
Raymond Chen

Keeping an eye on the reference.

What is COM marshaling and how do I use it?
Oct 20, 2015
Post comments count 0
Post likes count 0

What is COM marshaling and how do I use it?

Raymond Chen
Raymond Chen

Keeping an eye on the reference.

How do I get the user-customized name of a mapped network drive?
Oct 19, 2015
Post comments count 0
Post likes count 0

How do I get the user-customized name of a mapped network drive?

Raymond Chen
Raymond Chen

Ask the shell. That is, after all, how the shell displays is.

I have the handle to a file; how can I get the file name from the debugger?
Oct 16, 2015
Post comments count 0
Post likes count 0

I have the handle to a file; how can I get the file name from the debugger?

Raymond Chen
Raymond Chen

Build the call on the stack.

What’s the difference between UuidFromString, IIDFromString, CLSIDFromString, GUIDFromString…
Oct 15, 2015
Post comments count 0
Post likes count 1

What’s the difference between UuidFromString, IIDFromString, CLSIDFromString, GUIDFromString…

Raymond Chen
Raymond Chen

Mostly the same if what you have is a stringized GUID; otherwise...