Search code examples
c#wpfprocessprivileges

How to cope with program privileges for a logger


I have a logger program that has to take log all activities of a program. So the trick is that the logger has to have the same privileges of the main program.

So problem 1 shall be to discover the privileges of a running process.

Then I am able to set privileges of a program through App.manifest but NOT at runtime.

So problem 2 shall be to change privileges of a program at runtime. Is that possible?!?!?

Thanks


Solution

  • Once you are aware of what the privileges of that program are, you could make a launcher that launches two different programs built with different App.manifest privileges.