I'd like to determine if the currently logged in user is logged in by physically being at the computer of if they logged in via remote desktop.
I'm fine with limiting this to windows 7 if that helps.
I'm also fine with answers that determine this programatically or manually, though I would ultimatly prefer a programmatic answer.
Wtsapi32.dll
(only server editions have it)