Windows Server 2008 上的 IPHLPAPI.DLL 问题

发布于 2024-11-19 01:54:44 字数 395 浏览 9 评论 0原文

我正在尝试安装一个使用 API GetIPAddrfromTable 堆栈的应用程序。当我启动应用程序时,出现错误“IPHLPAPI.dll 中未找到过程入口点”

我注意到该 dll 文件相当旧,因此我尝试替换它,但 Windows Server 2008 不允许任何人复制任何文件到 system32 文件夹,即使您是管理员。

我尝试运行 sfc,它更新了 IPHLPAPI.DLL,并且我尝试注册新的 DLL,但收到错误消息“模块 iphlpapi.dll 已加载,但未找到入口点 DLLRegisterServer。请确保它是有效的 DLL 或 OCX 文件”。

我尝试搜索错误消息,他们说有关使用 regasm,但我收到错误“错误 RA0000:无法加载,因为它不是有效的 .NET 程序集”

这是 ak

I am trying to install an application which uses the API GetIPAddrfromTable stack. When I start up the application, I get the error "Procedure entry point not found in IPHLPAPI.dll"

I noticed that the dll file was quite old, so I tried replacing it, but Windows server 2008 doesn't let anyone copy any files to the system32 folder, even if you are administrator.

I tried to run sfc, and it updated the IPHLPAPI.DLL, and I tried to register the new DLL, but I get the error saying "The module iphlpapi.dll was loaded but the entry point DLLRegisterServer was not found. Make sure it is a valid DLL or OCX file".

I tried searching for the error messages, and they say something about using regasm, but I get the error "Error RA0000 : Failed to load because it is not a valid .NET assembly"

Is this a k

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

栀梦 2024-11-26 01:54:44

没有这样的函数,GetIpAddrTable() 是最接近的匹配。不要替换 c:\windows\system32 中的 DLL,这会极大地破坏 Windows 的稳定性,假设它会让您这样做。 Iphlpapi.dll 是本机 DLL。它不能用 Regsvr32 注册,它不是​​ COM 组件。您也不能使用 Regasm.exe,它不是 .NET 程序集。

我不得不猜测您的 [DllImport] 声明完全错误。考虑使用这个

There is no such function, GetIpAddrTable() is the closest match. Do not replace DLLs in c:\windows\system32, this can greatly destabilize Windows, assuming it would let you. Iphlpapi.dll is a native DLL. It cannot be registered with Regsvr32, it is not a COM component. Nor can you use Regasm.exe, it is not a .NET assembly.

I have to guess that your [DllImport] declaration is simply wrong. Consider using this one.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文