Process32Next
Process32Next Function
Retrieves information about the next process recorded in a system snapshot.
Process32Next是一个进程获取函数,当我们利用函数CreateToolhelp32Snapshot()获得当前运行进程的快照后,我们可以利用Process32Next函数来获得下一个进程的句柄.其原型为
BOOL WINAPI Process32Next(
__in HANDLE hSnapshot,
__out LPPROCESSENTRY32 lppe
);
Parameters
hSnapshot
A handle to the snapshot returned from a previous call to the CreateToolhelp32Snapshot function.
lppe
A pointer to a PROCESSENTRY32 structure.