I want to find out the process path of a service from a user session process. Basically I'm doing:
pid = pid of service process
CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, pid )
I get access denied when calling the above API. Is there other way to get the service process path given its PID bypassing the security check from a user session process?