Eigenen Prozess Namen ermitteln
-
Hallo,
wie kann ich den eigenen Prozess Namen (so wie er im Taskmanager steht) ermitteln?
-
GetModuleBaseName(-1,0,pBuffer,ccBuffer)
-
Besser GetModuleFileName
http://msdn.microsoft.com/en-us/library/ms683197(VS.85).aspxThe GetModuleBaseName function is primarily designed for use by debuggers and similar applications that must extract module information from another process. If the module list in the target process is corrupted or is not yet initialized, or if the module list changes during the function call as a result of DLLs being loaded or unloaded, GetModuleBaseName may fail or return incorrect information.