Windows核心编程第五版学习笔记(一)
来源:互联网 发布:淘宝商城卖药 编辑:程序博客网 时间:2024/04/29 20:24
第一章 错误处理
1、$err, hr 在vs的watch窗口中监视这个可以获得刚执行的windows api 的错误代码及详细解释。
2﹑自定义消息码:
(从左到右)
第31~30 位(Severity)
0=Success
1 = Informational
2 = Warning
3 = Error
第29 位(Microsoft/customer)
(注意第29位,自定义的消息码必须为1)
0 = Microsoft-defined code
1 = customer-defined code
第28 位(Reserved)
Must be 0
第27~26 位(Facility code)
The first 256 values are reserved by Microsoft
第15~0 位(Exception code)
Microsoft/customer-defined code
3、FormatMessage函数可以把消息码格式化成其对应的字符串。
4,GetLastError()函数的应用
- Windows核心编程第五版学习笔记(一)
- Windows核心编程学习笔记一
- windows核心编程学习笔记一
- Windows 核心编程学习笔记 一
- 《windows核心编程》学习笔记(一)内核对象
- 《windows核心编程》学习笔记(一)内核对象
- FW:《windows核心编程》学习笔记(一)内核对象
- 《windows核心编程》学习笔记(一)内核对象
- 《windows核心编程》笔记(一)
- 《windows核心编程》笔记(一)
- windows核心编程笔记(一)
- windows核心编程(笔记一)
- 线程学习笔记(windows核心编程)
- Python核心编程第二版第五章学习笔记
- 学习《windows核心编程》一
- Windows核心编程学习一
- python核心编程学习笔记(一)
- Python核心编程学习笔记(一)
- 域名信息证实 JavaEye 已被 CSDN 收购
- Silverlight跨域访问策略
- asp.net实现数据图表
- 【探索wireshark】 使用autoconf, automake等自动生成Makefile
- Encryption Technology
- Windows核心编程第五版学习笔记(一)
- BlackBerry Java 开发环境安装及入门(一)
- WCF事务相关定义
- Symfony入门-YAML
- 在asp.net页面中实现数据棒图
- 从地址栏中取传递的参数
- EF英语学习
- 随想
- 项目管理中的边边角角 之一