taliesins / cassia

Automatically exported from code.google.com/p/cassia
1 stars 0 forks source link

TerminalServicesSession.RemoteEndPoint fails on Windows 8/Server 2012+ #63

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It throws a Win32Exception (1733, "The tag is invalid"). This isn't terribly 
surprising, since we're using an undocumented API to get this information. It's 
not clear that there is any (documented or undocumented) replacement for this 
in Windows 8.

Original issue reported on code.google.com by danports on 17 Oct 2012 at 5:57

GoogleCodeExporter commented 9 years ago
This is an RPC issue (1733 = RPC_S_INVALID_TAG). Most likely, the function in 
winsta.dll hasn't changed but the underlying RPC protocol has.

Original comment by danports on 17 Oct 2012 at 7:58

GoogleCodeExporter commented 9 years ago
Actually, this seems to be working, except for console or disconnected 
sessions. So perhaps we just need to provide special handling for this one RPC 
error and return null instead.

Original comment by danports on 13 Oct 2014 at 3:23

GoogleCodeExporter commented 9 years ago

Original comment by danports on 13 Oct 2014 at 3:23