Forum: Object-Pascal / Delphi-Language
by Remko,
16. Mär 2007
If you connect to a Windows XP remote desktop you always get a console session. When you connect to a Terminal Server you can connect either to the console (windows 2003 only) or to a session. Disconnected sessions keep on running, als applications will just keep on running (doesn't matter if it's a console session or not)
Forum: Object-Pascal / Delphi-Language
by Remko,
16. Mär 2007
uses JwaWtsApi32 (make sure it's in your library path)
Forum: Object-Pascal / Delphi-Language
by Remko,
15. Mär 2007
I agree, it's not entirely clear what you want to accomplish. Did you try my solution? If you want to keep the application running just leave out the part with Application.Terminate. A disconnected sessions keeps on running.
Forum: Object-Pascal / Delphi-Language
by Remko,
15. Mär 2007
Maybe I'm not understanding your question so I'll summarize:
You want to start a remote desktop from PC1 to PC2. In PC2 you start a program (your program), from this program you want to close the remote desktop session so you can return to you normal desktop, am I right?