Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h

Started by keremg, August 16, 2008, 05:29:43 PM

Previous topic - Next topic

keremg

Hi,

the Tlhelp32.h is missing this declaration.

BOOL WINAPI CloseToolhelp32Snapshot(
  HANDLE hSnapshot
);

the import Library also lacks this symbolic reference,...

MSDN say this:

QuoteRemarks
The snapshot returned is a copy of the current state of the system.

To close a snapshot, call the CloseToolhelp32Snapshot function.

Do not call the CloseHandle function to close the snapshot call. That generates a memory leak.

I run the latest Pelles C,...

Regards

Kerem

Pelle

huh? AFAICT the definition is correct in tlhelp32.h, and part of toolhelp.lib as it should be... (in version 5.0; Windows Mobile only...)
/Pelle

keremg

Quote from: Pelle on September 23, 2008, 05:02:12 PM
huh? AFAICT the definition is correct in tlhelp32.h, and part of toolhelp.lib as it should be... (in version 5.0; Windows Mobile only...)

Yes, i see now, this is true, it was only valid for CE Windows and its familly, but as you will know, sometimes it is really not obvious (regarding poor api documentation of windows apis) what will and can be used where,...


Regards

Kerem