Getting local IP address

Hello,
is it possible to get local IP address ?
(TDI_QUERY_INFORMATION, TDI_QUERY_NETWORK_ADDRESS fails with
code STATUS_NOT_IMPLEMENTED)

TdiQueryInformationEx

----- Original Message -----
From: “Max Woo”
To: “NT Developers Interest List”
Sent: Monday, September 02, 2002 10:10 PM
Subject: [ntdev] Getting local IP address

> Hello,
> is it possible to get local IP address ?
> (TDI_QUERY_INFORMATION, TDI_QUERY_NETWORK_ADDRESS fails with
> code STATUS_NOT_IMPLEMENTED)
>
> —
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>

But TdiQueryInformationEx works only under Win9x, doesn’t it ?

TdiQueryInformationEx

>> But TdiQueryInformationEx works only under Win9x, doesn’t it ?

Negative. Works on NT very well. Though is a bit obscure how to get the IP
adress through it. IIRC, on OSR site you can find sample code (NT Insider)of
a TDI UDP client which implements querying IP address.

Regards, Dan

----- Original Message -----
From: “Max Woo”
To: “NT Developers Interest List”
Sent: Tuesday, September 03, 2002 1:20 AM
Subject: [ntdev] Re: Getting local IP address

> But TdiQueryInformationEx works only under Win9x, doesn’t it ?
> > TdiQueryInformationEx
>
> —
> You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> To unsubscribe send a blank email to %%email.unsub%%
>

Hmm, maybe it would be easier to use NT TdiRegisterAddressChangeHandler and
its replacement for newer OS versions (sorry, I forgot the name, see DDK).
The advatage: you get the list of all local IP addresses currently available
and all changes immediately. The disadvantage: it can be hard to associate
IP addresses with adapters if one needs it.

Best regards,

Michal Vodicka
STMicroelectronics Design and Application s.r.o.
[michal.vodicka@st.com, http:://www.st.com]


From: xxxxx@rdsor.ro[SMTP:xxxxx@rdsor.ro]
Reply To: xxxxx@lists.osr.com
Sent: Tuesday, September 03, 2002 1:54 AM
To: xxxxx@lists.osr.com
Subject: [ntdev] Re: Getting local IP address

>> But TdiQueryInformationEx works only under Win9x, doesn’t it ?

Negative. Works on NT very well. Though is a bit obscure how to get the IP
adress through it. IIRC, on OSR site you can find sample code (NT
Insider)of
a TDI UDP client which implements querying IP address.

Regards, Dan

----- Original Message -----
From: “Max Woo”
> To: “NT Developers Interest List”
> Sent: Tuesday, September 03, 2002 1:20 AM
> Subject: [ntdev] Re: Getting local IP address
>
>
> > But TdiQueryInformationEx works only under Win9x, doesn’t it ?
> > > TdiQueryInformationEx
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@rdsor.ro
> > To unsubscribe send a blank email to %%email.unsub%%
> >
>
>
>
> —
> You are currently subscribed to ntdev as: michal.vodicka@st.com
> To unsubscribe send a blank email to %%email.unsub%%
>