MapStorageSCode

Applies to: Outlook 2013 | Outlook 2016

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

Property Value
Header file:
Imessage.h
Implemented by:
MAPI
Called by:
Client applications and service providers
SCODE MapStorageSCode(
  SCODE StgSCode
);

Parameters

StgSCode

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

Return value

S_OK

The call succeeded and returned the expected value.

MAPI_E_CALL_FAILED

The function cannot find a matching value.

Remarks

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.