Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# Remote
Hello all,
We've met a problem using RDP: unable to force log-off the remote session. That means, when we, let's say, press "Escape" button on the remote host, the session is logged off, our server gets corresponding event
and everybody is happy.
BUT sometimes we have to disconnect "by force". In this case, after
the session is left open, and that's not good. Smile | :)
I found
method, but it gets function delegate as a parameter, and executing this function results in actions on the host and not on the remote one Frown | :(
We tried to call Shutdown.exe, but it can't logoff remote hosts (options "/l" and "/m //servername" cannot be used together).
So, there're two questions:
- How to close remote session ?
- How does rdp.invoke() works ?
Any help will be highly appreciated.
Posted 25-Mar-12 0:38am
Edited 25-Mar-12 1:43am
(no name)3.9K

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 268
1 Maciej Los 220
2 Kornfeld Eliyahu Peter 220
3 Sergey Alexandrovich Kryukov 202
4 ProgramFOX 185
0 Kornfeld Eliyahu Peter 240
1 Peter Leow 230
2 Maciej Los 220
3 Sergey Alexandrovich Kryukov 207
4 ProgramFOX 205

Advertise | Privacy | Mobile
Web01 | 2.8.150301.1 | Last Updated 25 Mar 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100