Re: Retreiving the logon account username for a particular windows service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



On Jun 8, 8:33 pm, tsmoj...@xxxxxxxxx wrote:
Does anyone know how to retreive the logon account username for a
particular windows service? Or the current user that is running this
service as a process. C# is the prefered language of choice.

Apparently, the managed classes don't seem to offer this easily (and
for good reason). However, I would think there is a way to do this
with an unmanaged call, but not sure where to start.

Any help is greatly appreciated, Thanks.

Inside the windows service code or you want it externally through some
code?

.



Relevant Pages