Pelles C forum

Pelles C => Bug reports => Topic started by: keremg on August 16, 2008, 05:29:43 PM

Title: Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h
Post by: keremg on August 16, 2008, 05:29:43 PM
Hi,

the Tlhelp32.h is missing this declaration.

BOOL WINAPI CloseToolhelp32Snapshot(
  HANDLE hSnapshot
);

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

MSDN say this:

Quote
Remarks
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
Title: Re: Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h
Post by: 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...)
Title: Re: Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h
Post by: keremg on September 23, 2008, 06:29:32 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