locked
WTSQuerySessionInformation with WTSClientAddress returns unexpected AF_PUP! RRS feed

  • Question

  • 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: https://docs.microsoft.com/en-us/windows/desktop/api/wtsapi32/ns-wtsapi32-_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).

    Wednesday, January 23, 2019 3:15 PM

Answers

All replies

  • Hello,

    Thanks for post here.

    >> 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...

    I think your case is more related to Remote Desktop Services, so I will move this thread to Where is the Forum for...? forum to redirect it, then you could post your issue on there for better support.

    Best Wishes,

    Jack 



    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.


    Thursday, January 24, 2019 9:06 AM
  • Thursday, January 24, 2019 9:37 AM
  • Posted:

    https://social.technet.microsoft.com/Forums/windowsserver/en-US/a6010c0e-5626-44fb-8829-e90656f682a9/wtsquerysessioninformation-with-wtsclientaddress-returns-unexpected-afpup?forum=winRDc

    Thursday, January 24, 2019 10:32 AM