How tof find the executable name?
-
Assume note pad is running. The API EnumWindows will return the window title such as "Untitled - Notepad". I am looking for an API that will tell me "notepad.exe" is running. In short I am looking for the same information the task manager displays. thanks
-
Assume note pad is running. The API EnumWindows will return the window title such as "Untitled - Notepad". I am looking for an API that will tell me "notepad.exe" is running. In short I am looking for the same information the task manager displays. thanks
See the
Process32First()
/Process32Next()
pair. There's alsoEnumProcesses()
.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Assume note pad is running. The API EnumWindows will return the window title such as "Untitled - Notepad". I am looking for an API that will tell me "notepad.exe" is running. In short I am looking for the same information the task manager displays. thanks
Try using GetModuleBaseName() or GetModuleFileNameEx() through u can get handle of the process and the file name that is being executed. "Don't forget to rate the reply, if it finds the solution for you".
-
See the
Process32First()
/Process32Next()
pair. There's alsoEnumProcesses()
.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Try using GetModuleBaseName() or GetModuleFileNameEx() through u can get handle of the process and the file name that is being executed. "Don't forget to rate the reply, if it finds the solution for you".