青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

HRESULT -- Structure of COM Error Codes

SCODEs on 16-bit platforms are divided into four fields: a severity code, a context field, a facility field, and an error code. The following illustration shows the format of an SCODE on a 16-bit platform; the numbers indicate bit positions:

image

HRESULTs and SCODEs on 32-bit platforms have the following format:

image

The high-order bit in the HRESULT or SCODE indicates whether the return value represents success or failure. If set to 0, SEVERITY_SUCCESS, the value indicates success. If set to 1, SEVERITY_ERROR, it indicates failure.

The context field is reserved in the SCODE on 16-bit platforms and does not exist in the version for 32-bit platforms. The R, C, N, and r bits are also reserved.

The facility field in both versions indicates the system service responsible for the error. Microsoft allocates new facility codes as they become necessary. Most SCODEs and HRESULTs set the facility field to FACILITY_ITF, indicating an interface method error.

 

vc6中的說明(in winerror.h line:7860)

////////////////////////////////////
//                                //
//     OLE Error Codes            //
//                                //
////////////////////////////////////

//
// OLE error definitions and values
//
// The return value of OLE APIs and methods is an HRESULT.
// This is not a handle to anything, but is merely a 32-bit value
// with several fields encoded in the value.  The parts of an
// HRESULT are shown below.
//
// Many of the macros and functions below were orginally defined to
// operate on SCODEs.  SCODEs are no longer used.  The macros are
// still present for compatibility and easy porting of Win16 code.
// Newly written code should use the HRESULT macros and functions.
//

//
//  HRESULTs are 32 bit values layed out as follows:
//
//   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
//   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
//  +-+-+-+-+-+---------------------+-------------------------------+
//  |S|R|C|N|r|    Facility         |               Code            |
//  +-+-+-+-+-+---------------------+-------------------------------+
//
//  where
//
//      S - Severity - indicates success/fail
//
//          0 - Success
//          1 - Fail (COERROR)
//
//      R - reserved portion of the facility code, corresponds to NT's
//              second severity bit.
//
//      C - reserved portion of the facility code, corresponds to NT's
//              C field.
//
//      N - reserved portion of the facility code. Used to indicate a
//              mapped NT status value.
//
//      r - reserved portion of the facility code. Reserved for internal
//              use. Used to indicate HRESULT values that are not status
//              values, but are instead message ids for display strings.
//
//      Facility - is the facility code
//
//      Code - is the facility's status code
//

Common facility fields are described in the following table.

Facility Field Value Description
FACILITY_DISPATCH 2 For late-binding IDispatch interface errors.

FACILITY_ITF

4 For most status codes returned from interface methods. The actual meaning of the error is defined by the interface. That is, two HRESULTs with exactly the same 32-bit value returned from two different interfaces might have different meanings.
FACILITY_NULL 0 For broadly applicable common status codes such as S_OK.
FACILITY_RPC 1 For status codes returned from remote procedure calls.
FACILITY_STORAGE 3

For status codes returned from IStorage or IStream method calls relating to structured storage. Status codes whose code (lower 16 bits) value is in the range of DOS error codes (that is, less than 256) have the same meaning as the corresponding DOS error.

FACILITY_WIN32 7 Used to provide a means of handling error codes from functions in the Win32 API as an HRESULT. Error codes in 16-bit OLE that duplicated Win32 error codes have also been changed to FACILITY_WIN32.
FACILITY_WINDOWS 8 Used for additional error codes from Microsoft-defined interfaces.
VC6中的定義    
FACILITY_SSPI 9  
FACILITY_SETUPAPI 15  
FACILITY_CONTROL 10  
FACILITY_CERT 11  
FACILITY_INTERNET 12  
FACILITY_MEDIASERVER 13  
FACILITY_MSMQ 14  

The code field is a unique number that is assigned to represent the error or warning.

By convention, HRESULTs generally have names in the following format:

        Facility_Severity_Reason

Facility is either the facility name or some other distinguishing identifier; Severity is a single letter, S or E, that indicates whether the function call succeeded (S) or produced an error (E); and Reason is an identifier that describes the meaning of the code. For example, the status code STG_E_FILENOTFOUND indicates a storage-related error has occurred; specifically, a requested file does not exist. Status codes from FACILITY_NULL omit the Facility_ prefix.

Error codes are defined within the context of an interface implementation. Once defined, success codes cannot be changed or new success codes added. However, new failure codes can be written. Microsoft reserves the right to define new failure codes (but not success codes) for the interfaces described in FACILITY_ITF or in new facilities.

posted on 2008-08-11 10:33 FongLuo 閱讀(525) 評論(0)  編輯 收藏 引用

<2008年9月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

導航

常用鏈接

留言簿

隨筆分類(11)

隨筆檔案(79)

文章檔案(1)

收藏夾(38)

學習網站

一般網站

最新隨筆

搜索

積分與排名

最新評論

閱讀排行榜

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美在线啊v一区| 欧美福利在线观看| 欧美午夜电影一区| 亚洲欧洲另类| 亚洲日韩视频| 免费在线看一区| 亚洲精品免费一二三区| 亚洲高清av在线| 欧美激情影院| 亚洲欧美国产va在线影院| 亚洲一区中文| 国产在线视频欧美| 亚洲第一网站| 国产精品av久久久久久麻豆网| 亚洲一区观看| 欧美在线三区| 亚洲精品美女在线观看| 夜夜嗨av一区二区三区网页| 国产区日韩欧美| 亚洲第一页中文字幕| 欧美日韩精品一区二区天天拍小说 | 欧美成人xxx| 欧美精品日韩精品| 性做久久久久久久久| 久久久久久一区二区| 亚洲一区二区三区国产| 欧美在线日韩| 亚洲一区影院| 女女同性女同一区二区三区91| 亚洲私人黄色宅男| 香蕉免费一区二区三区在线观看 | 国产欧美日韩激情| 欧美成熟视频| 国产精品白丝黑袜喷水久久久| 久久综合999| 欧美日韩综合精品| 欧美国产国产综合| 国产一级久久| 夜色激情一区二区| 亚洲国产精品va在线观看黑人| 国产精品99久久久久久久女警| 亚洲第一精品夜夜躁人人躁| 亚洲在线视频免费观看| 亚洲精品一区二区三区在线观看| 午夜精品久久久久久久白皮肤| 蜜桃精品久久久久久久免费影院| 久久精选视频| 亚洲综合国产精品| 夜夜嗨av色一区二区不卡| 欧美一级黄色录像| 亚洲欧美日韩国产综合在线| 欧美成人精品一区二区三区| 久久久久久久久久久成人| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ入口 | 国产精品xnxxcom| 亚洲国产乱码最新视频| 国产中文一区二区三区| 亚洲午夜一区二区| 一区二区三区日韩在线观看| 免费欧美在线| 欧美激情第五页| 一区二区三区无毛| 亚洲精品免费在线播放| 欧美一区永久视频免费观看| 欧美成年人网| 欧美91视频| 激情久久综艺| 久久国产精品久久久久久电车| 亚洲欧美日韩国产综合在线| 国产精品久久波多野结衣| 一级日韩一区在线观看| 中文国产亚洲喷潮| 欧美午夜无遮挡| 一本色道久久综合狠狠躁篇的优点 | 女同一区二区| 亚洲电影第三页| 麻豆精品视频| 亚洲国产综合视频在线观看| 亚洲美女黄网| 久久久精品一区| 午夜精品久久久久久久久久久| 欧美午夜a级限制福利片| 中文在线一区| 欧美一区激情| 在线精品国产欧美| 美女露胸一区二区三区| 亚洲国产裸拍裸体视频在线观看乱了| 亚洲久久一区二区| 国产精品久久久久一区| 午夜老司机精品| 欧美成人有码| 99国内精品| 国产美女精品视频免费观看| 久久国产精品亚洲77777| 亚洲福利精品| 亚洲欧美在线免费| 伊人成人在线视频| 欧美日韩日韩| 久久精品视频在线观看| 亚洲国产精品电影在线观看| 亚洲一区亚洲二区| 在线日韩欧美视频| 亚洲伦理中文字幕| 欧美激情第二页| 99pao成人国产永久免费视频| 亚洲网站在线看| 国产香蕉久久精品综合网| 久久免费一区| 一区二区精品| 免费观看成人www动漫视频| 9人人澡人人爽人人精品| 国产日韩欧美二区| 欧美人成在线视频| 欧美在线首页| 日韩一级不卡| 免费观看成人www动漫视频| 亚洲欧美日韩一区二区| 亚洲三级影院| 激情av一区二区| 国产精品国产精品| 欧美激情第二页| 久久亚洲欧洲| 欧美一区二区三区四区在线观看地址| 亚洲国产一区二区a毛片| 久久久亚洲成人| 午夜精品一区二区三区电影天堂 | 在线播放亚洲| 国产日韩欧美制服另类| 欧美精品久久久久久久久老牛影院| 先锋影院在线亚洲| 一区二区三区四区国产| 亚洲国产第一页| 嫩草伊人久久精品少妇av杨幂| 欧美一区二区三区在线| 亚洲精品一区在线观看| 亚洲电影观看| 亚洲电影在线观看| 国模套图日韩精品一区二区| 国产精品日韩精品欧美精品| 欧美视频在线免费| 欧美精品午夜视频| 欧美黑人一区二区三区| 欧美大成色www永久网站婷| 久久综合狠狠综合久久综青草| 久久激情网站| 久久久亚洲国产天美传媒修理工| 欧美一级淫片播放口| 性久久久久久久久久久久| 亚洲欧美另类中文字幕| 亚洲欧美在线一区| 午夜精品区一区二区三| 亚洲综合国产| 欧美在线欧美在线| 欧美专区在线播放| 久久久久国产精品人| 久久久天天操| 欧美成人精品一区| 欧美深夜福利| 国产欧美精品在线播放| 国产亚洲午夜| 在线日韩欧美视频| 日韩亚洲视频在线| 亚洲综合第一页| 欧美专区18| 欧美成人精品一区二区| 亚洲国产一区二区三区青草影视| 亚洲精品视频在线播放| 亚洲一区不卡| 久久久综合免费视频| 欧美激情一区二区三区| 国产精品久久夜| 狠狠色综合网| aa亚洲婷婷| 久久精品夜色噜噜亚洲aⅴ| 欧美jizz19性欧美| 亚洲美女区一区| 久久国产精品久久精品国产| 女人天堂亚洲aⅴ在线观看| 亚洲免费成人| 久久精品一区中文字幕| 欧美国内亚洲| 国产一区二区久久精品| 亚洲麻豆国产自偷在线| 午夜亚洲视频| 欧美激情一区二区三区四区| 亚洲一卡二卡三卡四卡五卡| 久久免费99精品久久久久久| 欧美日本中文字幕| 黄网站免费久久| 亚洲欧美日韩在线| 亚洲国产cao| 欧美在线三区| 国产精品美女999| 亚洲久久一区二区| 久久综合久久88| 亚洲免费在线| 欧美日韩在线三区| 亚洲茄子视频| 久久一本综合频道| 亚洲综合视频在线|