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 |