主题:DeviceIoControl不能用,怎么办?

  共有33092人关注过本帖    
客人
1楼


DeviceIoControl不能用,怎么办?  发帖心情 Post By:2012-12-11 11:04:00   [只看该作者]

我用em9000evc开发时包含ndis.h出现:
fatal error C1083: Cannot open include file: 'pkfuncs.h': No such file or directory
请问这个怎么办?

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
yy
2楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2012-12-11 11:41:00   [只看该作者]

EM9000的SDK里的ndis.h文件没有包含pkfuncs.h啊?你能贴下错误的详细信息吗?

  单帖管理 | 引用 | 回复 回到顶部
客人
3楼


  发帖心情 Post By:2012-12-11 13:20:00   [只看该作者]

--------------------Configuration: coremgr - Win32 (WCE ARMV4I) Debug--------------------
Build : warning : failed to (or don't know how to) build 'D:\wtfs9000b\src\coremgr\WMonitorTimeSrcPage.cpp'
Compiling...
DataMgr.cpp
Unicode Selected
f:\program files\windows ce tools\wce500\em9000_v9\include\armv4i\ceddk.h(1103) : fatal error C1083: Cannot open include file: 'pkfuncs.h': No such file or directory
Error executing clarm.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\ARMV4IDbg\DataMgr.sbr': No such file or directory
Error executing bscmake.exe.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\Ndis.h(4379): Could not find the file afilter.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\ntcompat.h(1233): Could not find the file lss.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\ceddk.h(1103): Could not find the file pkfuncs.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\pm.h(326): Could not find the file mpm.h.

coremgr.exe - 2 error(s), 1 warning(s)


  单帖管理 | 引用 | 回复 回到顶部
客人
4楼


  发帖心情 Post By:2012-12-11 13:21:00   [只看该作者]

--------------------Configuration: coremgr - Win32 (WCE ARMV4I) Debug--------------------
Build : warning : failed to (or don't know how to) build 'D:\wtfs9000b\src\coremgr\WMonitorTimeSrcPage.cpp'
Compiling...
DataMgr.cpp
Unicode Selected
f:\program files\windows ce tools\wce500\em9000_v9\include\armv4i\ceddk.h(1103) : fatal error C1083: Cannot open include file: 'pkfuncs.h': No such file or directory
Error executing clarm.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\ARMV4IDbg\DataMgr.sbr': No such file or directory
Error executing bscmake.exe.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\Ndis.h(4379): Could not find the file afilter.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\ntcompat.h(1233): Could not find the file lss.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\ceddk.h(45): Could not find the file macwin32.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\ceddk.h(1103): Could not find the file pkfuncs.h.
F:\Program Files\Windows CE Tools\wce500\EM9000_V9\Include\ARMV4I\pm.h(326): Could not find the file mpm.h.

coremgr.exe - 2 error(s), 1 warning(s)


  单帖管理 | 引用 | 回复 回到顶部
客人
5楼


  发帖心情 Post By:2012-12-11 13:24:00   [只看该作者]

若有解决办法,请联系我qq:173567043

  单帖管理 | 引用 | 回复 回到顶部
客人
6楼


  发帖心情 Post By:2012-12-11 13:24:00   [只看该作者]

若有解决办法,请联系我qq:173567043

  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
yy
7楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2012-12-12 16:19:00   [只看该作者]

DeviceIoControl是可以直接调用的,IOCTL_NDIS_GET_ADAPTER_NAMES的定义在ntddndis.h里的,与ndis.h或pkfuncs.h都没关系,定义如下。
#define IOCTL_NDIS_GET_ADAPTER_NAMES _NDIS_CONTROL_CODE( WINCE_IOCTL_START+6, METHOD_OUT_DIRECT )

如果只为修改板子的IP,MARK,网关这些,我们有提供相关的例程,我已经发你了。

  单帖管理 | 引用 | 回复 回到顶部
客人
8楼


  发帖心情 Post By:2012-12-13 9:42:00   [只看该作者]

用 iphlpapi.h 中函数修改IP更好,但不过重启后就失效了


  单帖管理 | 引用 | 回复 回到顶部
帅哥哟,离线,有人找我吗?
yy
9楼 信息 | 搜索 | 邮箱


加好友 发短信
  发帖心情 Post By:2012-12-17 9:15:00   [只看该作者]

不是重启失效,是我们有一个配置文件,如果你在配置文件里面设置了IP信息或系统配置,启动时会自动更改相应配置,这个配置文件的说明请参考我们《使用必读》,你在配置文件里去掉IP,网关,掩码项即可。

  单帖管理 | 引用 | 回复 回到顶部

返回首页

DeviceIoControl不能用,怎么办?

用户名:
            验证码: 验证码,看不清楚?请点击刷新验证码
内容: