Win32 API to Disconnect User (like from Task Manager)
I'm looking for an API function that I can use to perform the "Disconnect User" function in Windows XP. What I'm exactly referring to is the action that happens after you click the button "Disconnect" if you are in the Users tab of the Task Manager. Please see attached image...
Does anyone have any ideas on what I can use to get this done?
Every resource I check for user32.dll doesn't seem to have anything explicitly related to this. I thought about trying to somehow use CloseDesktop and see if that would work, but haven't had time to fiddle with it yet.

