This documentation is archived and is not being maintained.


This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Maps an SCODE return value from an OLE storage object to an HRESULT type.

Header file:


Implemented by:


Called by:

Client applications and service providers

SCODE MapStorageSCode(
  SCODE StgSCode


[in] MAPI SCODE return value from an OLE storage object to be mapped to a HRESULT value.


The call succeeded and returned the expected value.


The function cannot find a matching value.

MAPI provides the MapStorageSCode function for the internal use of MAPI components that base their message implementations on the message DLL. Because these components open OLE storage themselves, they must be able to map error values returned for problems with OLE storage to an HRESULT value.

For more information, see Structured Storage.