I list all running processes in the system with the full path. My application works fine in XP, but in Vista, it provides access to a prohibited exception when accessing MainModule.FileName. (Due to UAC, I think).
foreach (Process process in Process.GetProcesses())
{
sProcess = process.ProcessName;
sFullpath = process.MainModule.FileName;
..
..
..
}
I did not find a solution to work with UAC. Any hint
source
share