小默

[zz]MyAddDevice

To define an AddDevice callback function that is named MyAddDevice, you must first provide a function declaration that Static Driver Verifier (SDV) and other verification tools require, as follows:

DRIVER_ADD_DEVICE MyAddDevice;

 

Then, implement your callback function as follows:

NTSTATUS
  MyAddDevice(
    __in struct _DRIVER_OBJECT  *DriverObject,
    __in struct _DEVICE_OBJECT  *PhysicalDeviceObject 
    )
  {
      // Function body
  }

posted on 2009-12-29 11:12 小默 阅读(118) 评论(0)  编辑 收藏 引用 所属分类: Windows


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理


导航

统计

留言簿(13)

随笔分类(287)

随笔档案(289)

漏洞

搜索

积分与排名

最新评论

阅读排行榜