MMSBUILD-239 (Mark) Wrap all Win32 API functions that we use

@markbenvenuto