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

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>
            亚洲国产精品女人久久久| 久久久久国产精品一区| 91久久久一线二线三线品牌| 久久国产精品一区二区| 国产一区二区中文字幕免费看| 亚洲欧美日韩国产| 亚洲直播在线一区| 激情亚洲网站| 欧美激情国产精品| 欧美日韩国产不卡| 欧美亚洲日本网站| 久久精品理论片| 亚洲激情影视| 日韩视频在线观看国产| 国产精品卡一卡二| 久久免费视频这里只有精品| 裸体丰满少妇做受久久99精品| 91久久精品一区二区三区| 99国内精品久久| 国产日韩视频一区二区三区| 欧美成人蜜桃| 欧美色视频一区| 久久久青草青青国产亚洲免观| 欧美+亚洲+精品+三区| 亚洲视频国产视频| 久久精品久久99精品久久| 一本色道精品久久一区二区三区| 亚洲视频1区2区| 亚洲第一精品在线| 一本大道久久a久久精二百| 国产视频丨精品|在线观看| 欧美高潮视频| 国产亚洲欧美一区在线观看| 亚洲欧洲综合| 一区二区三区在线观看欧美 | 国产精品一区二区三区免费观看 | 免费在线播放第一区高清av| 欧美精品在线视频| 久久久国际精品| 欧美三级视频在线| 欧美成在线视频| 国产日韩欧美中文在线播放| 欧美韩日一区二区| 国产三区精品| 中文网丁香综合网| 亚洲高清中文字幕| 亚洲网站啪啪| 一区二区三区产品免费精品久久75| 欧美在线播放一区二区| 亚洲已满18点击进入久久| 欧美91视频| 免费成人小视频| 国产又爽又黄的激情精品视频| 99re在线精品| 亚洲理论电影网| 蜜臀av在线播放一区二区三区| 久久国产精品72免费观看| 国产精品国产馆在线真实露脸| 欧美成人中文字幕| 尤物网精品视频| 久久精品国产视频| 久久久av毛片精品| 国产真实久久| 欧美一区二区三区四区在线观看地址 | 欧美亚洲视频在线看网址| 欧美日韩18| 日韩视频在线观看国产| 一区二区三区国产盗摄| 欧美极品aⅴ影院| 亚洲欧洲一区二区三区在线观看| 91久久精品www人人做人人爽| 久久香蕉精品| 欧美激情第10页| 艳女tv在线观看国产一区| 欧美成va人片在线观看| 欧美激情精品久久久六区热门| 在线观看91精品国产麻豆| 久久久久久久久久久久久久一区| 久久婷婷久久| 在线看欧美视频| 欧美第十八页| 一本久道久久综合中文字幕| 亚洲欧美视频在线观看视频| 国产伦精品一区二区三区免费| 欧美一区二区视频观看视频| 美女成人午夜| 亚洲理论电影网| 欧美性猛片xxxx免费看久爱 | 亚洲精品1区2区| 中文久久乱码一区二区| 国产精品剧情在线亚洲| 欧美一级在线视频| 牛牛国产精品| 一区二区三区高清在线| 国产精品夜色7777狼人| 久久精品99| 亚洲精品一区二区三区福利| 性欧美办公室18xxxxhd| 狠狠色狠狠色综合系列| 欧美金8天国| 亚洲欧美日韩综合aⅴ视频| 免费亚洲一区二区| 一区二区三区四区国产精品| 国产日韩欧美在线| 欧美激情精品久久久久久久变态 | 免费短视频成人日韩| 一区二区三区免费观看| 国产色产综合色产在线视频 | 亚洲精品美女免费| 欧美专区在线| aaa亚洲精品一二三区| 国产一区二区精品在线观看| 欧美精品色综合| 久久精品日产第一区二区| 99re6这里只有精品视频在线观看| 久久久亚洲国产美女国产盗摄| 亚洲乱码国产乱码精品精| 国产一区导航| 欧美性做爰毛片| 美女久久网站| 亚洲欧美电影院| 日韩视频中午一区| 亚洲第一黄色| 男女精品视频| 久久久精品免费视频| 制服丝袜激情欧洲亚洲| 最新日韩在线| 一区二区三区在线观看欧美| 国产麻豆精品视频| 欧美亚一区二区| 欧美三区美女| 欧美精品在线观看| 免费在线欧美视频| 久久久夜夜夜| 久久九九99| 久久精品在线免费观看| 久久成年人视频| 亚洲在线国产日韩欧美| 亚洲视频免费看| 正在播放欧美一区| 一区二区三区高清不卡| 日韩一区二区免费高清| 日韩一二三在线视频播| 亚洲欧洲在线看| 亚洲伦理自拍| 亚洲六月丁香色婷婷综合久久| 亚洲国产精品传媒在线观看| 欧美激情网友自拍| 亚洲高清电影| 亚洲精品影院| 在线中文字幕日韩| 亚洲欧美日韩精品久久亚洲区| 亚洲深夜福利在线| 午夜视频久久久| 久久精品99久久香蕉国产色戒| 久久美女性网| 美女诱惑黄网站一区| 欧美精品一区在线发布| 国产精品vvv| 国产欧美一区二区三区另类精品| 国内成人自拍视频| 亚洲国产精品电影在线观看| 亚洲欧洲一区二区天堂久久| aa亚洲婷婷| 香蕉久久一区二区不卡无毒影院| 久久成人精品无人区| 嫩模写真一区二区三区三州| 亚洲电影在线| 中日韩午夜理伦电影免费| 亚洲欧美日韩一区| 美女精品网站| 国产精品成人一区二区三区夜夜夜 | 久久国产主播精品| 欧美大片在线观看一区| 国产精品高清在线| 激情婷婷亚洲| 正在播放亚洲| 久久精品主播| 最近中文字幕mv在线一区二区三区四区| 亚洲精品极品| 欧美中文字幕不卡| 欧美精品福利| 国产一区二区三区无遮挡| 亚洲精品国精品久久99热一| 亚洲欧美综合另类中字| 欧美成人中文字幕| 亚洲一区二区三区涩| 美女图片一区二区| 国产日韩精品一区二区三区在线| 亚洲福利视频网| 欧美在线视频一区| 亚洲欧洲另类| 久久久久国产一区二区三区| 欧美日韩中文字幕日韩欧美| 国内一区二区在线视频观看| 亚洲伊人伊色伊影伊综合网 | 欧美一级专区免费大片| 亚洲二区在线| 久久久99国产精品免费| 国产精品久久久久天堂|