tags:

views:

351

answers:

2

Hi guys. I need to write a basic RDP client in C/C++, doesn't need GUI it can be CLI, it only needs to connect to specified hosts - if connection is successfull, to confirm it and if it isn't to output an error message like the pass is not correct. Can someone point me to somewhere so i can read more about this ? Thanks.

+1  A: 

You're probably looking for the Windows Terminal Services API or also known as the Remote Desktop Services API.

Brian R. Bondy
+2  A: 

Look at the source for rdesktop - A Remote Desktop Protocol Client for accessing Windows Terminal Services.

For a quick feel, view the source for tcp.c: Protocol services - TCP layer.

gimel