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

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 閱讀(529) 評論(0)  編輯 收藏 引用


只有注冊用戶登錄后才能發表評論。
網站導航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


<2008年8月>
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456

導航

常用鏈接

留言簿

隨筆分類(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>
            国产精品素人视频| 亚洲精品国产品国语在线app | 国产精品黄色在线观看| 91久久线看在观草草青青| 麻豆成人综合网| 老司机精品久久| 亚洲激情视频网| 亚洲国内精品| 国产精品久久久久久久久久妞妞 | 99精品久久免费看蜜臀剧情介绍| 欧美激情一区二区三区在线| 牛牛国产精品| 亚洲自拍偷拍麻豆| 亚洲欧美国产毛片在线| 狠狠色综合播放一区二区| 欧美成人激情视频免费观看| 欧美精品情趣视频| 西西裸体人体做爰大胆久久久| 久久综合中文色婷婷| 麻豆av一区二区三区| 一区二区欧美国产| 亚洲欧美日韩精品久久奇米色影视| 国内成+人亚洲| 亚洲人体1000| 国产亚洲成人一区| 亚洲激情精品| 久久精品二区| 国产手机视频精品| 亚洲国产视频a| 国产日韩欧美综合一区| 亚洲福利在线视频| 国产精品手机视频| 欧美韩日一区二区| 国产精品自在在线| 亚洲欧洲综合另类| 国产手机视频精品| 日韩一区二区精品在线观看| 国外成人性视频| 一片黄亚洲嫩模| 最新日韩av| 欧美中文字幕久久| 亚洲图片激情小说| 久久综合福利| 欧美影院在线| 欧美色中文字幕| 亚洲国产日韩在线一区模特| 国产一区二区三区久久久久久久久 | 国产精品国产三级国产普通话蜜臀 | 亚洲精品少妇30p| 性色一区二区三区| 亚洲一区在线免费观看| 欧美大片91| 免费亚洲网站| 国产日韩一区二区三区在线播放 | 久久综合给合久久狠狠狠97色69| 欧美视频久久| 亚洲精品综合精品自拍| 亚洲国产成人高清精品| 性一交一乱一区二区洋洋av| 亚洲综合成人在线| 欧美日韩另类综合| 亚洲国内欧美| 亚洲日本一区二区三区| 久久久久国产精品一区三寸| 久久九九精品99国产精品| 国产精品欧美经典| 亚洲图片你懂的| 亚洲在线免费| 国产精品免费观看视频| 夜夜嗨av色综合久久久综合网| 亚洲精品久久久久久下一站| 久久综合图片| 亚洲国产精品女人久久久| 亚洲国产第一| 欧美精品免费观看二区| 亚洲精品日韩综合观看成人91| 日韩亚洲精品在线| 欧美手机在线视频| 亚洲午夜久久久久久久久电影院 | 另类激情亚洲| 亚洲国产日韩在线| 欧美韩国日本一区| 夜夜爽www精品| 香蕉成人久久| 国内偷自视频区视频综合| 久久天堂av综合合色| 亚洲大片在线| 亚洲性感美女99在线| 国产精品日韩专区| 久久精品中文| 亚洲日本中文字幕| 午夜国产精品视频| 激情综合自拍| 欧美日本亚洲视频| 亚洲制服av| 欧美激情综合| 午夜久久久久久久久久一区二区| 国产亚洲精品一区二555| 麻豆国产精品va在线观看不卡| 91久久精品日日躁夜夜躁国产| 亚洲私人影院| 影音先锋日韩资源| 欧美午夜视频| 91久久视频| 久久激情一区| 99综合视频| 黄色日韩网站| 欧美日韩在线一区| 久久精品噜噜噜成人av农村| 亚洲精品美女| 久久人体大胆视频| 亚洲私拍自拍| 亚洲第一精品影视| 国产精品久久久久久久久动漫| 久久久久久久综合日本| 亚洲伦理在线观看| 免费在线观看日韩欧美| 亚洲欧美在线x视频| 亚洲精品一二三| 国产在线精品自拍| 欧美性猛交xxxx乱大交退制版| 麻豆乱码国产一区二区三区| 亚洲自啪免费| 99精品国产在热久久婷婷| 欧美国产丝袜视频| 久久久久久久久蜜桃| 亚洲欧美国产日韩天堂区| 亚洲欧洲中文日韩久久av乱码| 国产三级精品在线不卡| 国产精品v日韩精品| 欧美精品综合| 欧美不卡一卡二卡免费版| 欧美与黑人午夜性猛交久久久| 在线综合亚洲欧美在线视频| 亚洲欧美日韩中文在线制服| 亚洲欧洲精品一区二区三区不卡 | 久久夜色精品国产噜噜av| 亚洲一区亚洲| 亚洲午夜在线视频| 99国产精品一区| 日韩视频在线你懂得| 亚洲高清色综合| 欧美激情麻豆| 亚洲国产mv| 欧美激情一区二区三区成人| 久久在线免费视频| 美女成人午夜| 欧美aⅴ99久久黑人专区| 久久午夜视频| 欧美福利视频在线观看| 欧美成人国产| 欧美激情2020午夜免费观看| 欧美黄色片免费观看| 欧美韩日一区| 亚洲欧洲在线看| 亚洲精品在线免费观看视频| 亚洲精品色婷婷福利天堂| 日韩视频中午一区| 中文在线不卡视频| 亚洲欧美在线另类| 久久久久国产精品一区三寸| 久热爱精品视频线路一| 欧美国产日韩精品| 欧美日韩一区二| 国产精品午夜国产小视频| 国产视频精品免费播放| 国产一区激情| 亚洲国产精品毛片| 一区二区三区四区精品| 欧美一级欧美一级在线播放| 欧美在线亚洲一区| 免费久久99精品国产自| 91久久中文字幕| 亚洲永久免费av| 久久久精品免费视频| 欧美美女福利视频| 国产日韩一区二区三区| 亚洲欧洲一区二区三区| 亚洲天天影视| 老司机一区二区三区| 亚洲精品视频在线观看网站| 亚洲小视频在线| 你懂的视频欧美| 国产精品爽爽爽| 亚洲精品之草原avav久久| 在线观看欧美| 亚洲视频电影图片偷拍一区| 久久精品论坛| 亚洲免费大片| 久久久蜜桃精品| 国产精品伦理| 日韩视频国产视频| 久久精品一区中文字幕| 亚洲激情亚洲| 久久久蜜桃精品| 国产乱理伦片在线观看夜一区| 亚洲精品中文字幕女同| 久久久久国色av免费看影院 | 亚洲欧美日韩中文播放| 亚洲国产精品久久久久秋霞影院|