recently i came across a problem. i need to do RDP to a windows machine, which i can take care .. but after RDP , i need to get the RDP session details of the machine to whom i have opened a RDP session. details which i am looking at: color depth , windows screen size , if drives are shared or not, printer are shared to the RDP machine or not.

so the solution i was think of ... I will run a web server ( apache or IIS) on the machine to which i will do RDP , which will have some CGI script to get me the RDP session details.... and using browser i will access the CGI script and after that using Selenium .. i will get these details back from web-page.

so i need help .. if writing this CGI script ... i am not sure which API of windows i can use in my win32::OLD lib.. to get the RDP session details thanks tanuj