05 2010 档案

摘要:图一 I/O请求包数据结构图1显示了IRP的数据结构,阴影部分代表不透明域。下面是该结构中重要域的简要描述。MdlAddress(PMDL)域指向一个内存描述符表(MDL),该表描述了一个与该请求关联的用户模式缓冲区。如果顶级设备对象的Flags域为DO_DIRECT_IO,则I/O管理器为IRP_MJ_READ或IRP_MJ_WRITE请求创建这个MDL。如果一个IRP_MJ_DEVICE_CO... 阅读全文
posted @ 2010-05-30 10:19 xinjun 阅读(693) 评论(0) 推荐(0)
摘要:下载了filemon之后在VC6.0里面编译发现报错:按照上面的代码修改原来的程序即可通过编译。 阅读全文
posted @ 2010-05-29 09:47 xinjun 阅读(542) 评论(0) 推荐(0)
摘要:通常,在写WINDOWS程序的时候我们会用 GetLastError()来获得错误代号,进而想要知道具体出错原因(文本描述),我们可以用 FormatMessage 函数来得到。  下面示例一段代码。 阅读全文
posted @ 2010-05-27 09:21 xinjun 阅读(789) 评论(0) 推荐(0)
摘要:The DeviceIoControl function provides a device input and output control (IOCTL) interface through which an application can communicate directly with a device driver. The DeviceIoControl function is a ... 阅读全文
posted @ 2010-05-26 10:47 xinjun 阅读(635) 评论(0) 推荐(0)