09-10-2006, 05:43 PM
how do i get exename from pid/pidparent ?
thanks
thanks
get exename from pid/pidparent
|
09-10-2006, 06:17 PM
Find pid/exename by enumerating processes. Use CreateToolhelp32Snapshot, Process32First, Process32Next, CloseHandle. This works on all OS, but on some OS gets exename without path.
Or, OpenProcess, EnumProcessModules (one call enough), GetModuleFileNameEx or GetModuleBaseName, CloseHandle. This does not work on Windows 9x. Function PidToExename ;/ |
« Next Oldest | Next Newest »
|