I can successful connect to my remote desktop in c++ but in windows 8 there is network level administration which require Cred Support to be enabled and also require domain name.
I have here a remoteapp application that shows me the workstation name BEFORE i put the username and password. I wonder how does this application get the domain workstation name ?
I played with all options from IMsRdpClientNonScriptable5, IMsRdpClient but haven't find anything related.
There is only one place i found the correct domain and it is when i connect through mstsc.exe on certificate Warning dialog i get the domain name at subject as seen in screenshot:
Name:  zOtUz.png
Views: 349
Size:  36.9 KB
My question is: is there any way to get this domain name programmatically ?
Sorry about the long post. Hopefully someone can help, it would much be appreciated!