softwarescience
Programmer
Using the 'ServiceProcess.ServiceController' namespace and class I can get almost all the information I want regarding services and devices, and manipulate them.
However, (as usual with .Net) the last bit of information I need is the actual path of the service and the account it runs under, which I cannot seem to find. I would prefer NOT to have to revert to the standard APIs.
Does anyone have any idea on how to retrieve this information (preferably without using the 'System.Management' namespace unless I really have to (it's too convoluted)).
Many thanks
However, (as usual with .Net) the last bit of information I need is the actual path of the service and the account it runs under, which I cannot seem to find. I would prefer NOT to have to revert to the standard APIs.
Does anyone have any idea on how to retrieve this information (preferably without using the 'System.Management' namespace unless I really have to (it's too convoluted)).
Many thanks