debug : StartService failed, getlasterror = 0x7f
2013-09-16 00:00
756 查看
R3程序用SCM安装启动NT驱动, 一直在Vmware9.0 + WinXpSp3中测试.
今天加了些代码, 发现R3启动NT驱动失败.
R3发生错误的地方是 StartService, 错误码 = 0x7f
去CodeProject上看看Demo, 人家也是这么用.
用Win7X86配置编译, 在vmware 9 + winxpSp3中运行, 前一段时间,一直正常...
0x7f 用ErrorLookup 查看为 “找不到指定的程序。 ”
突然想起来, 编译驱动时用的是Win7X86的配置. 有没有可能是Win7X86编译出的驱动,在WinXpX86下使用了某个不存在的函数?
用WinXpX86配置编译驱动, 提示"D:\WinDDK\7600.16385.1\lib\wxp\i386\AUX_KLIB.LIB"无法处理.
去 D:\WinDDK\7600.16385.1\lib\wxp\i386 下看 果真没有AUX_KLIB.LIB, 看来在哪个版本的Windows运行就要用哪个参数的WDK配置啊.
在OSR上找到一篇文章,也是这个问题, 看到了有人建议安装AUX_LIB for WinXp
去MS站点, 下载AUX_LIB库
http://www.microsoft.com/en-us/download/confirmation.aspx?id=19632
安装 AuxLib32.msi 到 D:\WinDDK\7600.16385.1\lib\wxp\i386\Aux_LIB.
将 D:\WinDDK\7600.16385.1\lib\wxp\i386\Aux_LIB\x86\*.lib, 拷贝到 D:\WinDDK\7600.16385.1\lib\wxp\i386\
*.h 就用WDK7600自带的, 没有换.
重新用WinXp配置编译驱动, 放到虚拟机WinXp中运行搞定~。
今天加了些代码, 发现R3启动NT驱动失败.
R3发生错误的地方是 StartService, 错误码 = 0x7f
去CodeProject上看看Demo, 人家也是这么用.
用Win7X86配置编译, 在vmware 9 + winxpSp3中运行, 前一段时间,一直正常...
0x7f 用ErrorLookup 查看为 “找不到指定的程序。 ”
突然想起来, 编译驱动时用的是Win7X86的配置. 有没有可能是Win7X86编译出的驱动,在WinXpX86下使用了某个不存在的函数?
用WinXpX86配置编译驱动, 提示"D:\WinDDK\7600.16385.1\lib\wxp\i386\AUX_KLIB.LIB"无法处理.
去 D:\WinDDK\7600.16385.1\lib\wxp\i386 下看 果真没有AUX_KLIB.LIB, 看来在哪个版本的Windows运行就要用哪个参数的WDK配置啊.
在OSR上找到一篇文章,也是这个问题, 看到了有人建议安装AUX_LIB for WinXp
去MS站点, 下载AUX_LIB库
http://www.microsoft.com/en-us/download/confirmation.aspx?id=19632
安装 AuxLib32.msi 到 D:\WinDDK\7600.16385.1\lib\wxp\i386\Aux_LIB.
将 D:\WinDDK\7600.16385.1\lib\wxp\i386\Aux_LIB\x86\*.lib, 拷贝到 D:\WinDDK\7600.16385.1\lib\wxp\i386\
*.h 就用WDK7600自带的, 没有换.
重新用WinXp配置编译驱动, 放到虚拟机WinXp中运行搞定~。
相关文章推荐
- debug : StartService failed, getlasterror = 0x7f(127) 转
- error:org.apache.catalina.LifecycleException:Failed to start component[StandardService[Tomcat]]
- Perl Debug error: SetConsoleMode failed, LastError=|6|
- lsnrctl start 出现错误Failed to start service, error 0.
- E-Business Suite 12.2 startCD 50 Install Fails with Fatal Error: TXK Install Service oracle.apps.fnd.txk.config.ProcessStateException: OUI process failed Cannot install Web Tier Utilities
- GetLastError()返回值
- GetLastError的用法
- Error:Execution failed for task ':app:mergeDebugResources'. > Error: Some file crunching failed, see
- Visual Studio 2010报错——GetLastError()=716
- Error:Execution failed for task ':app:processDebugManifest'.
- Nexus 启动失败 nexus-webapp service was launched, but failed to start.
- GetLastError返回值的意义----适用在eVC和VC++
- GetLastError 错误号意义!0-------999
- 错误代码GetLastError返回代码的含义
- Error:Execution failed for task ':app:mergeDebugResources'.
- 解决 Android 编译报错:Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
- Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed with multiple
- [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln222] Failed to get master_ip_failover_script
- 解决Unable to load R3 module ...VBoxDD.dll (VBoxDD):GetLastError=1790
- 【Git笔记】"error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed"解决方法