在kernel32.dll windows2000服务器sp1中找不到HeapSetInformation入口点

在kernel32.dll windows2000服务器sp1中找不到HeapSetInformation入口点

问题描述:





我正在运行OS windows 2000 sp1,当我运行我的应用程序时,我收到了在kernel32.dll中找不到的错误Heapsetinformation入口点。, MSDN为Windows 2000 sp4提供了一个rollbackup更新,这在我的操作系统[sp1]中无效。对此有任何建议。,



谢谢,

Sajith

Hi,

I am running OS windows 2000 sp1, when i run my application i am getting the error Heapsetinformation entry point not found in kernel32.dll., MSDN has provided a rollbackup update for windows 2000 sp4, which is not working in my OS [sp1]. Any suggestions on this.,

Thanks,
Sajith

据我所知,HeapSetInformation API是在Windows XP中引入的。您的应用程序正在构建以针对XP或更高版本,因此它使用注入的启动代码尝试调用HeapSetInformation。

如果您可以重建您的应用程序,则需要将其重新定位到Windows 2000.您将需要设置预处理器定义,但哪些取决于你正在做什么。

您使用的是哪种平台SDK?哪个Visual Studio版本或者您使用的是MinGW?

无论如何,您可以设置以下部分或全部内容。



_WIN32_WINDOWS = 0x0500

WINVER = 0x0500

_WIN32_WINNT = 0x0500 //这可能是你需要的那个

NTDDI_VERSION = 0x05000100



这些是PreProcessor设置而不是代码,所以他们需要进入你的项目,IDE或Make文件。



顺便说一句,微软不喜欢我们已经正式支持为Windows 2000构建任何内容,因此你的结果不会得到保证。

祝你好运。
The HeapSetInformation API was introduced in Windows XP as far as I can tell. Your application is being built to target XP or later so its using injected startup code that tries to call HeapSetInformation.
If you can rebuild your application you need to retarget it for Windows 2000. You''ll need to set preprocessor defines but which ones depend on exactly what you''re doing.
Which Platform SDK are you using? Which Visual Studio version or are you using MinGW?
Anyway for reference you can set some or all of the following.

_WIN32_WINDOWS=0x0500
WINVER=0x0500
_WIN32_WINNT=0x0500// this is probably the one you need
NTDDI_VERSION=0x05000100

These are PreProcessor settings not code so they need to go into your project,IDE or Make file.

By the way Microsoft don''t officially support building anything for Windows 2000 anymore so your results are not gaurenteed.
Good luck.


感谢你的时间马修..



我将操作系统更新到Windows 2000 SP4,在此链接中应用了指定的汇总包 - [ ^ ]。现在申请工作正常。



-Sajith
Thanks for your time Matthew..

I updated my Operating System to Windows 2000 SP4, applied the specified roll up package in this link - [^]. Now the application is working fine.

-Sajith