When launching my application in Windows NT machine (Ver. 4.0 SP6), I get the below error message and the application does not get launched. However, the same app gets launched on Windows XP and works fine.
The Message reads as below:
"The procedure entry point CreateToolhelp32Snapshot could not be located in the dynamic link library KERNEL32.dll"
Any idea/fix? Please help
Thanks,
Nayan
From the reference page for CreateToolhelp32Snapshot()
:
so the function is not available on NT. A possible alternative would be to use EnumProcesses()
in conjunction with OpenProcess()
. See the example Enumerating All Processes.