NO

Author Topic: Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h  (Read 4343 times)

keremg

  • Guest
Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h
« 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
« Last Edit: August 16, 2008, 05:46:54 PM by keremg »

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h
« Reply #1 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...)
/Pelle

keremg

  • Guest
Re: Missing CloseToolhelp32Snapshot declaration in Tlhelp32.h
« Reply #2 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