WinApi helper - minor fixes.