请教: 如何使用已有驱动的接口?

andyzhu9 2007-02-08 11:32:55
正常情况下我们自己写完一个驱动后, 都会再写DLL去打开driver,将参数传给driver或者取回driver的返回值, 应用程序只要直接call DLL里面的function。我的问题是我想使用一个VGA厂商写的driver中的服务,但我不知道这个Driver中到底有哪些服务,请问我如何侦测到这些服务并如何使用它们?
...全文
406 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
andyzhu9 2007-03-15
  • 打赏
  • 举报
回复
没人理我?
andyzhu9 2007-03-05
  • 打赏
  • 举报
回复
谢谢楼上的, 可否告诉我如何用IDA把DeviceIoControl里面的值取出来?
mme 2007-03-03
  • 打赏
  • 举报
回复
可以获取接口的,用IDA把DeviceIoControl里面的值拿出来,很容易搞定,如果想知道很详细的信息,具体每一个code是什么功能,那比较耗时间,除非你本身对这类驱动很熟悉

andyzhu9 2007-03-02
  • 打赏
  • 举报
回复
up
andyzhu9 2007-02-27
  • 打赏
  • 举报
回复
顶一把
xikug 2007-02-09
  • 打赏
  • 举报
回复
可以解析出来。。。就要看你有没有这个能力了。。。

---------------------------------------------------
第8个男人
http://www.debugman.com
gaooo 2007-02-08
  • 打赏
  • 举报
回复
gz
wangk 2007-02-08
  • 打赏
  • 举报
回复
向厂商要SDK比较好,否则很容易出现奇奇怪怪的问题。
andyzhu9 2007-02-08
  • 打赏
  • 举报
回复
一般我们自己写的驱动中会有一个DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = XXXDeviceControl; 而XXXDeviceControl中都会有
switch(irpSp->Parameters.DeviceIoControl.IoControlCode)
{
case XXX:
Case YYY:
}
,我们可不可以将这一部分解析出来呢?
碧螺春的马甲 2007-02-08
  • 打赏
  • 举报
回复
打开驱动的interface ,无非就是 CreateFile CloseFile 和 DevIoCtrl,
但里面的参数长什么样子,如果没有文档和sample,太难猜了。
andyzhu9 2007-02-08
  • 打赏
  • 举报
回复
是的,我想读EDID。注册表里面的那个EDID其实是不准的。本来在XP下面已经挺难搞的了,现在Vista就更不好搞了,微软说了“Int10 communications are supported in the Windows XP display driver model (XDDM) and earlier versions of the Windows display driver model support. However, to avoid the stability problems caused by legacy BIOS communication methods, the Windows Vista display driver model (WDDM) does not support Int10 communications. It does not pass the Int10 interrupt message to the system BIOS, thus disabling any functionality that depends on Int10 communications.
The WDDM is a significant evolution of the graphics driver infrastructure and is not backward compatible with XDDM drivers and previous versions of Windows. ”。我这只是举了个VGA的例子,其实我一直对如何打开驱动的接口相当感兴趣。麻烦各位大牛指点一下。
碧螺春的马甲 2007-02-08
  • 打赏
  • 举报
回复
一般显卡的 driver都是比较 标准的,也就是说可以用 DX 系列完成所要达到的功能。

除非 ... 你有奇特的需求。

2,640

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧