views:

205

answers:

2

Hi all

how do i disconnect RDP session programatically in c# or c++?

Abdul Khaliq

+2  A: 

Use WTSDisconnectSession.

Roger Lipscombe
+2  A: 

You could try running tsdiscon: http://support.microsoft.com/kb/321705

David