Sure it does, it's the only environment in which you can have two (Windows
XP) users logged on simultaniously. But honestly I fail to see why you want
this on a workstation, interactve user sessions should log off manually
don't they?
Willy.
|
| Oh Oh! I spoke too soon -- I need the Enumeration() and Logoff()
| capabilities to work with users logging on locally to a standalone PC
| running XP (not a server). Doesn't seem as though the WTS... functions
would
| work in that environment. :-(
|
| Any other thoughts on this? Thanks. - Lew
|
|
| | > Hello lewb,
| >
| > Use WTSLogoffSession with the user's session ID
| >
| >
http://msdn.microsoft.com/library/d...v/termserv/wtsregistersessionnotification.asp
| > sample is there
| >
http://www.pinvoke.net/default.aspx/wtsapi32/WTSLogoffSession.html
| >
| >
| > l> Michael,
| > l> Thanks for responding. What does it mean? (Re: parental supervision)
| > l> I need
| > l> to be able to log off a specific user. - Lew
| > l> | > l>
| >>> Hello Lew,
| >>>
| >>> LB> I need to write code which can determine what users are logged
| >>> on,
| >>>
| >>> Systen.Environment.UserName
| >>>
| >>> LB> and which can log users off.
| >>> What does it mean?
| >>> ---
| >>> WBR,
| >>> Michael Nemtsev :: blog:
http://spaces.live.com/laflour
| >>> "At times one remains faithful to a cause only because its opponents
| >>> do not cease to be insipid." (c) Friedrich Nietzsche
| >>>
| > ---
| > WBR,
| > Michael Nemtsev :: blog:
http://spaces.live.com/laflour
| >
| > "At times one remains faithful to a cause only because its opponents do
| > not cease to be insipid." (c) Friedrich Nietzsche
| >
| >
|
|