Article View: borland.public.cppbuilder.nativeapi
Article #15793Re: GetIfTable?
From: vERUs
Date: Thu, 12 Jun 2003 20:38
Date: Thu, 12 Jun 2003 20:38
22 lines
1641 bytes
1641 bytes
> Try using LoadLibrary(), not GetModuleHandle().
Hmm, I thougt I'd already tried that but it worked so obviously I didn't.
What's the differens between LoadLibrary() and GetModuleHandle() really?
> That suggests to me that maybe you are simply passing the wrong parameters
> to the function in your code then.
I've done some testing and it seems that way.
MIB_IFTABLE IFTable;
ULONG Sz = 0;
DWORD Result = GetIfTable(NULL, &Sz, true);
Result = GetIfTable(&IFTable, &Sz, true); <------ This is where
the crash occures!
What am I doing wrong?
/ vERUs
Technical Details
Message-ID:
<3ee8e4e3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3ee62442@newsgroups.borland.com> <3ee62f95$1@newsgroups.borland.com> <3ee89b89@newsgroups.borland.com> <3ee8a91c$1@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-12 13:44:11 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> Subject: Re: GetIfTable? Date: Thu, 12 Jun 2003 22:38:24 +0200 Lines: 24 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.4.138 Message-ID: <3ee8e4e3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1055450339 212.105.4.138 (12 Jun 2003 13:38:59 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail