debug : StartService failed, getlasterror = 0x7f(127) 转

作者遇到在WinXP环境下运行由Win7编译的驱动失败的问题,通过安装AuxLib32库解决了冲突。分享了解决方案及原因分析。

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中运行搞定~。

转载于:https://www.cnblogs.com/15157737693zsp/p/4687197.html

Log file open, 03/25/25 14:43:00 LogWindows: Failed to load 'aqProf.dll' (GetLastError=126) LogWindows: File 'aqProf.dll' does not exist LogProfilingDebugging: Loading WinPixEventRuntime.dll for PIX profiling (from ../../../Engine/Binaries/ThirdParty/Windows/WinPixEventRuntime/x64). LogWindows: Failed to load 'VtuneApi.dll' (GetLastError=126) LogWindows: File 'VtuneApi.dll' does not exist LogWindows: Failed to load 'VtuneApi32e.dll' (GetLastError=126) LogWindows: File 'VtuneApi32e.dll' does not exist LogWindows: Started CrashReportClient (pid=20752) LogWindows: Custom abort handler registered for crash reporting. LogInit: Display: Running engine for game: PICO_UE_Android_53 LogCore: UnrealTraceServer: Trace store launch successful LogTrace: Initializing trace... LogCore: Display: Requested channels: 'cpu,gpu,frame,log,bookmark,screenshot,region' LogTrace: Finished trace initialization. LogCsvProfiler: Display: Metadata set : platform="Windows" LogCsvProfiler: Display: Metadata set : config="Development" LogCsvProfiler: Display: Metadata set : buildversion="++UE5+Release-5.3-CL-29314046" LogCsvProfiler: Display: Metadata set : engineversion="5.3.2-29314046+++UE5+Release-5.3" LogCsvProfiler: Display: Metadata set : os="Windows 10 (22H2) [10.0.19045.2965] " LogCsvProfiler: Display: Metadata set : cpu="GenuineIntel|11th Gen Intel(R) Core(TM) i7-11700 @ 2.50GHz" LogCsvProfiler: Display: Metadata set : pgoenabled="0" LogCsvProfiler: Display: Metadata set : pgoprofilingenabled="0" LogCsvProfiler: Display: Metadata set : ltoenabled="0" LogCsvProfiler: Display: Metadata set : asan="0" LogCsvProfiler: Display: Metadata set : commandline="" D:/UE_Project/PICO_UE_Android_53/PICO_UE_Android_53.uproject"" LogCsvProfiler: Display: Metadata set : loginid="d07d49b34737c52c61c2578a641709e7" LogCsvProfiler: Display: Metadata set : llm="0" LogStats: Stats thread started at 0.242879 LogPluginManager: Display: By default, prioritizing project plugin (D:/UE_Project/PICO_UE_Android_53/Plug
03-26
<think>好的,用户遇到了Unreal Engine中dll文件加载失败的问题,具体是aqProf.dll和VtuneApi.dll在Windows 10下使用UE5.3开发配置时出现的问题。我需要根据提供的引用信息来找出解决方案。 首先,参考引用1中提到安装.NET 6.0 Runtime解决了环境问题。可能某些工具或插件依赖.NET环境,所以检查并安装正确的.NET版本可能有用。 引用2和3都提到了编译工具的问题,尤其是MSVC v143的版本。用户可能需要确认是否安装了正确的Visual Studio构建工具,或者是否需要回退版本。如果编译工具不兼容,可能导致dll加载失败。 引用4是关于车辆交互的代码示例,可能与此问题无关,但需要注意是否有自定义插件或代码调用了这些dll,导致加载失败。 接下来,我需要考虑其他可能的原因,比如dll文件损坏、路径问题、权限问题,或者安全软件阻止加载。此外,Intel VTune相关的dll可能与性能分析工具有关,需要确认是否安装了相关软件。 综合这些信息,解决方案应包括检查构建工具版本、安装.NET依赖、验证dll完整性、检查路径和权限,以及处理可能的第三方工具冲突。</think>### Unreal Engine DLL加载失败问题解决方案(aqProf.dll/VtuneApi.dll) #### 1. 安装必备运行时环境 - **.NET 6.0 Runtime**:这两个DLL文件可能与性能分析工具相关,需先安装[.NET 6.0 Runtime (v6.0.15)](https://dotnet.microsoft.com/en-us/download/dotnet/6.0)[^1] - **验证安装**:在控制面板中检查.NET版本是否显示`v6.0.15` #### 2. 更新编译工具链 - **安装MSVC v143**:通过Visual Studio Installer安装`MSVC v143 VS 2022 C++ x64/x86 build tools (v14.36-17.6)`[^3] - **版本回退**:若使用最新版仍失败,可尝试回退到`v14.30`等旧版本 #### 3. 验证DLL文件完整性 ```powershell # 以管理员身份运行PowerShell Get-ChildItem "aqProf.dll","VtuneApi.dll" -Recurse | Get-FileHash ``` 将哈希值与官方发布版本对比,若不一致需重新生成项目文件 #### 4. 检查VTune Profiler兼容性 这两个DLL属于Intel® VTune™ Profiler组件,需: 1. 更新至[VTune 2023.2+](https://www.intel.com/content/www/us/en/developer/tools/oneapi/vtune-profiler.html) 2. 在项目设置中禁用性能分析器: ```ini # DefaultEngine.ini [Analytics] bSendUsageData=false ``` #### 5. 修复工程配置 1. 生成新项目文件: ```bat # 在项目目录执行 Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.exe -projectfiles -project="YourProject.uproject" -game -rocket ``` 2. 清理中间文件: ```bat del /s/q *.sln del /s/q *.vcxproj* rd /s/q Intermediate Saved ``` #### 6. 权限修复(Windows特有) ```powershell # 重置UE5安装目录权限 icacls "D:\Epic Games\UE_5.3" /reset /T /C ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值