viqfoai
驱动牛犊
驱动牛犊
  • 注册日期2012-11-11
  • 最后登录2013-02-23
  • 粉丝0
  • 关注0
  • 积分4分
  • 威望31点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1438回复:0

在驱动中怎么用setupapi.h

楼主#
更多 发布于:2013-01-20 15:06
在驱动中因为要用到函数SetupDiEnumDeviceInterfaces加入了setupapi.h的头文件,结果出现了一堆编译错误
1>errors in directory d:\usbdevelopment\d12mcuprog\usbdriver\virtualcom
1>d:\winddk\3790.1830\inc\wxp\prsht.h(98) : error C2143: syntax error : missing ')' before '*'
1>d:\winddk\3790.1830\inc\wxp\prsht.h(98) : error C2143: syntax error : missing '{' before '*'
...
都是类似的错误,查了一下对应的地方,
typedef UINT (CALLBACK *LPFNPSPCALLBACKA)(HWND hwnd, UINT uMsg, struct _PROPSHEETPAGEA *ppsp);
好象是UINT CALLBACK之类的都没有定义,
这些好象在很多文件中都有定义,在驱动中应该加哪一个呢?
我现的包含文件如下
#include <wdm.h>
#include <ntddser.h>
#include <setupapi.h>
不知道有没有哪位高手碰到过同样的问题没有,能否指点一下?多谢了
游客

返回顶部