Article View: borland.public.cppbuilder.nativeapi
Article #13188Re: what is PIP_ADDR_STRING
From: Maurice Anderson
Date: Fri, 24 Oct 2003 06:01
Date: Fri, 24 Oct 2003 06:01
52 lines
2779 bytes
2779 bytes
Thank You Gambit. What if a card has mutliple IP Addresses?
"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:3f98b599$1@newsgroups.borland.com...
>
> "Maurice Anderson" <mauriceanderson@hotmail.com> wrote in message
> news:3f98a55b@newsgroups.borland.com...
> > In the structure (PIP_ADAPTER_INFO) which is passed
> > to GetAdaptersInfo, CurrentIpAddress is of type
> > PIP_ADDR_STRING. In the BCB world, what is comparible
> > to ths type?
>
> If you look in iptypes.h, you will see that PIP_ADDR_STRING is a pointer
to
> another structure:
>
> typedef struct _IP_ADDR_STRING {
> struct _IP_ADDR_STRING* Next;
> IP_ADDRESS_STRING IpAddress;
> IP_MASK_STRING IpMask;
> DWORD Context;
> } IP_ADDR_STRING, *PIP_ADDR_STRING;
>
> Look at the following article for more information:
>
> IP_ADDR_STRING
> http://msdn.microsoft.com/library/en-us/iphlp/iphlp/ip_addr_string.asp
>
> > For that matter, what is time_t, BYTE, "struct _IP_ADAPTER_INFO* Next;"?
>
> 'time_t' is a typedef for 'long', and represents a time value, in seconds,
> that have elapsed since January 1, 1970 00:00:00 AM. Have a look at the
> time() function in the C library for more information.
>
> 'BYTE' is just a typedef for an 'unsigned char'. In the case of the
Address
> member of IP_ADAPTER_INFO, it is an array of bytes, up to a maximum of 8,
> where each BYTE is another portion of the overall adapter address.
>
> GetAdaptersInfo() returns a linked list of possibly multiple adapters.
> 'Next' is a pointer to the next IP_ADAPTER_INFO instance in the list.
>
> Look at the following article for more information:
>
> IP_ADAPTER_INFO
>
http://msdn.microsoft.com/library/en-us/iphlp/iphlp/ip_adapter_info.asp
>
>
> Gambit
>
>
Technical Details
Message-ID:
<3f98bf83$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f98a55b@newsgroups.borland.com> <3f98b599$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,214e0c2531095828 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-10-23 23:09:03 PST From: "Maurice Anderson" <mauriceanderson@hotmail.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f98a55b@newsgroups.borland.com> <3f98b599$1@newsgroups.borland.com> Subject: Re: what is PIP_ADDR_STRING Date: Thu, 23 Oct 2003 23:01:54 -0700 Lines: 54 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 64.30.203.223 Message-ID: <3f98bf83$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1066975107 64.30.203.223 (23 Oct 2003 22:58:27 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail