Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
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
Posted

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.
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900