The Old New Thing

Practical development throughout the evolution of Windows.

Latest posts

Oct 26, 2015
Post comments count 0
Post likes count 1

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

Raymond Chen

Extra work.

Oct 23, 2015
Post comments count 0
Post likes count 1

CoGetInterfaceAndReleaseStream does not mix with smart pointers

Raymond Chen

Old school meets new school.

Oct 22, 2015
Post comments count 0
Post likes count 2

What are the rules for CoMarshalInterface and CoUnmarshalInterface?

Raymond Chen

Keeping an eye on the reference gets a little harder.

Oct 21, 2015
Post comments count 0
Post likes count 1

What are the rules for CoMarshalInterThreadInterfaceInStream and CoGetInterfaceAndReleaseStream?

Raymond Chen

Keeping an eye on the reference.

Oct 20, 2015
Post comments count 0
Post likes count 1

What is COM marshaling and how do I use it?

Raymond Chen

Keeping an eye on the reference.

Oct 19, 2015
Post comments count 0
Post likes count 1

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

Raymond Chen

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

Oct 16, 2015
Post comments count 0
Post likes count 1

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

Raymond Chen

Build the call on the stack.

Oct 15, 2015
Post comments count 0
Post likes count 2

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

Raymond Chen

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

Oct 14, 2015
Post comments count 0
Post likes count 2

The MoveSecurityAttributes policy affects only how Explorer recalculates ACLs when a file is moved; everybody else is on their own

Raymond Chen

GUI policies tend not to apply to command line tools.