Click to See Complete Forum and Search --> : GetActiveUser? in Service


Hive Morph
November 18th, 2003, 11:41 AM
How to get active user from service that runs in context of local system.

I tried with NetWkstaUser.. functions, GetUserName but with no success. All I get was that user is System.
As I see I have to impersonate the user to get his data but I don't know which user to impersonate.

vicodin451
November 18th, 2003, 11:47 AM
http://www.codeguru.com/forum/showthread.php?s=&threadid=269019&highlight=GetUserName

http://www.codeguru.com/forum/showthread.php?s=&threadid=269055&highlight=GetUserName

Hive Morph
November 20th, 2003, 07:08 AM
Thanx this help me a lot.
I tried with search but I didn't find those links.