Add logging of CreateToolhelp32Snapshot