If you want to know who is logged on to the machine, why not just enumerate your local processes?

If you ignore all the daemon process owners what's left will be the user(s).

If you run full desktops it's even easier - you just need to look for any "explorer.exe" processes.