Added some stubs and header information. Fixed some return codes.
Added some type definitions used by the MFC.