Share via


SCODE

The SCODE data type is a 32-bit status value that is used to describe an error or warning.

Syntax

typedef ULONG   SCODE; 

Remarks

On 32-bit platforms, the SCODE data type is the same as the HRESULT data type. An SCODE value is divided into four fields:

  • A single-bit severity code, which is set to 0 to indicate success and 1 to indicate failure.
  • An 11-bit reserved field
  • A 4-bit facility code, which indicates the area responsible for the error or warning.
  • A 16-bit error or warning code, which describes the problem causing the error or warning.

Like COM methods and functions, many MAPI functions and methods return SCODE values defined as HRESULT data types.

See Also

HRESULT

MAPI Data Types

Messaging

Last updated on Friday, April 22, 2005

© 2005 Microsoft Corporation. All rights reserved.

Send feedback on this topic to the authors.