i am in a bit of trouble at the moment. I am trying to find the executable filename of a process. So far I have 2 implementations of it, one using PSLIB, the other using PROCESSENTRY32 struct. Both of these don't seem to give me the actual filename of the process when run without admin rights. I dont need the complete path, just the filename. (like services.exe).

I noticed Process Explorer shows the filename in normal user mode; maybe you can tell me your little secret before i freak? ;)

Is there maybe some kind of nice example on how to use that properly? I am not _that_ versed in C/C++ or most of the win32 api as I mainly program Java. I have to write an interface for process monitoring now though.

@eth8505: Use PSAPI. Go to http://www.msdn.com, MS have examples for this.

Like this:

Task Manager is an example of a program that enumerates all running processes. It is implemented using data from the performance registry. The following sample code uses the EnumProcesses function to enumerate the current processes in the system. This method is easier than using the performance registry.

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot delete your posts in this forumYou cannot edit your posts in this forumYou cannot create polls in this forumYou cannot vote in polls in this forum