WTSQuerySessionInformation with WTSClientAddress returns unexpected AF_PUP!

  • Thread starter Thread starter GabiGanam
  • Start date Start date
G

GabiGanam

Guest
Hi,

I get the remote client address by calling WTSQuerySessionInformation with the WTSClientAddress parameter, which returns a WTS_CLIENT_ADDRESS object.
The WTS_CLIENT_ADDRESS has an AddressFamily DWORD which is documented here: _WTS_CLIENT_ADDRESS
"Address family. This member can be AF_INET, AF_INET6, AF_IPX, AF_NETBIOS, or AF_UNSPEC."
In the case of the new "Microsoft Remote Desktop 10" mac application, the value of the address family is unexpectedly 4 (AF_PUP), and in this case - the Address byte array does not seem to contain the client address.
I've also tried to call WTSQuerySessionInformation with WTSSessionAddressV4, which returns a similar structure (
WTS_SESSION_ADDRESS), but it too does not have the IP in the Address byte array.


Can anyone explain if it's possible to get the client address using this API, with the new (10) MS RDP mac app?

FYI, in the previous version (Microsoft Remote Desktop 8) it worked as expected (AF_INET and the client address was in the Address field).

Continue reading...
 
Back
Top