I tried WTSQuerySessionInformation api with the WTSClientAddress for the
infoclass to retrieve the Client's IP address. This works fine when a client
connects to the server via a Remote Desktop connection in XP or Windows
2003. However, this API fails when called via a Terminal Server Client
created from the Client Connection Manager console. The AddressFamily from
the PWTS_CLIENT_ADDRESS return buffer is always AF_UNSPEC.
Any reason why this is? Or any other solutions to resolve this problem?
Any help is grreatly appreciated.
Shady
Post by Vera Noest [MVP]You can retrieve the clients IPnumber and computername with the
WTSQuerySessionInformation function
--
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
http://hem.fyristorg.com/vera/IT
--- please respond in newsgroup, NOT by private email ---
"=?Utf-8?B?SGVpbnogRGV1Ymxlcg==?="
Post by Heinz DeublerI would like to keep track of the ip addresses of computers
running RDP and connect to your Terninal Server. Is there a way
of doing that?
Thanks
Heinz