Welcome to MSDN Blogs Sign in | Join | Help

Code (RSS)

Uninitialized floating point variables can be deadly

The dreaded sNaN exception.
Posted by oldnewthing | 49 Comments
Filed under:

GUIDs are globally unique, but substrings of GUIDs aren't

Half of a GUID is worse than none.
Posted by oldnewthing | 40 Comments
Filed under:

Why are DLLs uninitialized in the "wrong" order?

The same reason they unload in the "wrong" order.
Posted by oldnewthing | 4 Comments
Filed under:

Why does OpenProcess succeed even when I add three to the process ID?

An artifact of the implementation, not contractual.
Posted by oldnewthing | 41 Comments
Filed under:

Reading a contract from the other side: SHSetInstanceExplorer and SHGetInstanceExplorer

Maintaining a reference on the process from a shell extension.
Posted by oldnewthing | 27 Comments
Filed under:

You can't give away something that isn't yours

Works in code just like in real life.
Posted by oldnewthing | 12 Comments
Filed under:

What does TranslateAccelerator do?

It translates accelerators, of course.
Posted by oldnewthing | 13 Comments
Filed under:

Data breakpoints are based on the linear address, not the physical address

Data can change without the breakpoint firing.
Posted by oldnewthing | 6 Comments
Filed under:
More Posts Next page »
 
Page view tracker