Ported first example from the original windows win32 files.  This version was fine, other than the compiler being a little more picky about implicit casts.
