EnumProcesses() vs CreateToolhelp32Snapshot()

后端 未结 5 694
既然无缘
既然无缘 2020-12-30 22:42

I was wondering if there are any differences - mostly performance wise - between the two Win32 API functions EnumProcesses() and CreateToolhelp32Snapshot()

5条回答
  •  无人及你
    2020-12-30 22:53

    CreateToolhelp32Snapshot FTW. EnumProcesses doesnt enumerate all system processes like all instances of svchost.exe at least on Win XP.

提交回复
热议问题