Due to server problems the website is temporarily offline! Visit http://www.smorgasbordet.com/pellesc/ to download Pelles C.
auto hSnapshot = CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0);
warning #2099: Missing type specifier; assuming 'int'.error #2082: Invalid initialization type; expected 'int' but found 'void *'.error #2168: Operands of '=' have incompatible types 'int' and 'void *'.
HANDLE CreateToolhelp32Snapshot( [in] DWORD dwFlags, [in] DWORD th32ProcessID);
Code: [Select]HANDLE CreateToolhelp32Snapshot( [in] DWORD dwFlags, [in] DWORD th32ProcessID);CreateToolhelp32Snapshot returns a HANDLE, not int.
Attached is a helpful table on storage classes sourced from from https://www.geeksforgeeks.org/storage-classes-in-c/