🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13187

Re: what is PIP_ADDR_STRING

#13187
From: Remy Lebeau (TeamB)
Date: Fri, 24 Oct 2003 05:08
43 lines
2501 bytes
"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: <3f98b599$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f98a55b@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 22:19:58 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f98a55b@newsgroups.borland.com>
Subject: Re: what is PIP_ADDR_STRING
Date: Thu, 23 Oct 2003 22:08:13 -0700
Lines: 45
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 67.22.137.75
Message-ID: <3f98b599$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1066972569 67.22.137.75 (23 Oct 2003 22:16:09 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-out.visi.com!petbe.visi.com!ash.uu.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail