I would like to retrieve the process ID and handle of a process by querying for it by process name. Is this poss开发者_StackOverflowible to do on the Win32 Windows Mobile platform?
Thanks in advance.
Use CreateToolhelp32Snapshot(), following with Process32First() and the related functions, following the general idea in the code sample. The Process32... functions provide PROCESSENTRY32 for each process, which contains the Process ID.
精彩评论