Hi all,
I have a service application that needs to find the currently logged on user (to identify their registry hive in HKEY_USERS). I could have the service app login as the user - which will be my fall back - but I'd like to know how the LocalSystem that it's logged in as can determine the current user.
All the GetCurrentUser routines I've found work only for standard apps.
I have a service application that needs to find the currently logged on user (to identify their registry hive in HKEY_USERS). I could have the service app login as the user - which will be my fall back - but I'd like to know how the LocalSystem that it's logged in as can determine the current user.
All the GetCurrentUser routines I've found work only for standard apps.