HRESULT

xiaoxiao2021-03-06  38

HRESULT

The HRESULT DATA TYPE IS A 32-BIT VALUE THAT IS Used to Describe An Error or Warning.

Typedef long hresult;

Remarks

On 32-bit Platforms, The HRESULT DATA TYPE. ON 16-bit Platforms, an Scode Value IS Used To Generate An HRESULT VALUE.

An HRESULT VALUE IS MADE UP of the FOLLOWING FIELDS:

A 1-bit code indicating severity, where zero represents success and 1 represents failure. A 4-bit reserved value. An 11-bit code indicating responsibility for the error or warning, also known as a facility code. A 16-bit code describing The error or warning.

Most MAPI interface methods and functions return HRESULT values ​​to provide detailed result information. HRESULT values ​​are also used widely in OLE interface methods. OLE provides several macros for converting between HRESULT values ​​and SCODE values, another common data type for error handling. For information about The Ole Use of Hresult Values, See The Ole Programmer's Reference. For more information about use of these values ​​in mapi, See Error Handling and any of the following interface method

转载请注明原文地址:https://www.9cbs.com/read-78205.html

New Post(0)