I was wondering if any of you happen to know an API function to log off a remote machine. I DON'T want to use the Win32Shutdown WMI class method as I've already used it, which is really slow and mostly seem to fail on Windows XP machines when Firewall is turned on.
Please note that I already know about the following API's but they are still limited:
ExitWindowsEx - supports the logoff method, but only on a local machine.
InitiateSystemShutdown - works on remote machines, but only provides shutdown and restart. It DOES NOT have a param or flag for LogOff.
Any help would be greatly appreciated.