IOCTL_TDI_QUERY_INFORMATION...

Hi !
I use IOCTL_TDI_QUERY_INFORMATION and I get the local IP and local Port
(TCP/UDP)…

if (DeviceIoControl(hObject, IOCTL_TDI_QUERY_INFORMATION, &reqaddr,
sizeof(eqaddr), addr, sizeof addr, 0, &o))

ipaddr->Address[0].Address[0].in_addr
ipaddr->Address[0].Address[0].sin_port

But… how can I get Remote IP and Remote Ports ?

Thank you

You cannot, they are only saved in WinSock at accept() or connect() time.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: “Marcos Velasco”
To: “Windows System Software Devs Interest List”
Sent: Tuesday, December 23, 2003 4:35 PM
Subject: [ntdev] IOCTL_TDI_QUERY_INFORMATION…

> Hi !
> I use IOCTL_TDI_QUERY_INFORMATION and I get the local IP and local Port
> (TCP/UDP)…
>
> if (DeviceIoControl(hObject, IOCTL_TDI_QUERY_INFORMATION, &reqaddr,
> sizeof(eqaddr), addr, sizeof addr, 0, &o))
> …
> ipaddr->Address[0].Address[0].in_addr
> ipaddr->Address[0].Address[0].sin_port
>
>
> But… how can I get Remote IP and Remote Ports ?
>
> Thank you
>
>
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com