Windows 中自定义Error Codes的格式:

Bits: 31-30 29 28 27-16 15-0
Contents Severity Microsoft/
customer
Reserved Facility code Exception
code
Meaning 0 = Success
1 = Informational
2 = Warning
3 = Error
0 = Microsoft-defined code
1 = customer-defined code
Must be 0 The first 256 values are reserved by Microsoft Microsoft/customer-defined code
Copyed from Windows via c/c++ fifth edtion
posted on 2011-05-17 15:34  zhaojunlucky  阅读(171)  评论(0编辑  收藏  举报