开发者

how to load driver?

I want to develop one driver so i have create one service and one .sys file for driver to be display now i do not know how to attach that two file or how to register my driver to windows. so just tell me the step which i should follow.

Thanks and hoping for positive respons开发者_JAVA技巧e.


Depends on the driver you write. If it's a device driver it's automatically loaded once the system needs it for the previously defined device classes.

For drivers which don't need devices you need a special driver service. See this CodeProject example - section "Dynamically Loading and Unloading the Driver"


Basically the most straightforward is using the following apis (in that order). I think it should be pretty straight forward.

http://msdn.microsoft.com/en-us/library/ms684323%28v=VS.85%29.aspx 
http://msdn.microsoft.com/en-us/library/ms682450%28v=VS.85%29.aspx
http://msdn.microsoft.com/en-us/library/ms686321%28v=VS.85%29.aspx
http://msdn.microsoft.com/en-us/library/ms682028%28v=VS.85%29.aspx


You can load driver by using StartService API. And you can also use ZwLoadDriver. It's a native API. You can find more information about them in MSDN.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜