🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: GetIfTable?

#15730
From: vERUs
Date: Tue, 17 Jun 2003 14:19
28 lines
1580 bytes
I've finally solved it!
Here's the code if someone's interested...


     PMIB_IFTABLE IFTable;
     MIB_IFROW MibRow;
     ULONG Sz = 0;

     DWORD Result = GetIfTable(NULL, &Sz, true);

     IFTable = (PMIB_IFTABLE)GlobalAlloc(GPTR, Sz);

     Result = GetIfTable(IFTable, &Sz, true);

     if (Result == NO_ERROR)
     {
        for (unsigned int i = 0; i < (*IFTable).dwNumEntries; i++)
        {
           MibRow = (*IFTable).table[i];

            ...
        }

        GlobalFree((HGLOBAL)IFTable);
    }
    ...

/ vERUs
Technical Details
Message-ID: <3eef2366@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ee62442@newsgroups.borland.com> <3ee62f95$1@newsgroups.borland.com> <3ee89b89@newsgroups.borland.com> <3ee8a91c$1@newsgroups.borland.com> <3ee8e4e3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,70d2eff840e44f86
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-17 07:21:33 PST
From: "vERUs" <verus@privat.utfors.se>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ee62442@newsgroups.borland.com> <3ee62f95$1@newsgroups.borland.com> <3ee89b89@newsgroups.borland.com> <3ee8a91c$1@newsgroups.borland.com> <3ee8e4e3@newsgroups.borland.com>
Subject: Re: GetIfTable?
Date: Tue, 17 Jun 2003 16:19:37 +0200
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
NNTP-Posting-Host: 212.105.27.6
Message-ID: <3eef2366@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1055859558 212.105.27.6 (17 Jun 2003 07:19:18 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail