Article View: borland.public.cppbuilder.nativeapi
Article #11240Re: Adaptername?
From: Bob Gonder
Date: Fri, 20 Feb 2004 19:10
Date: Fri, 20 Feb 2004 19:10
22 lines
1867 bytes
1867 bytes
vERUs wrote:
>That's what I first did... but since it returned an empty string I thought
>there was something wrong.
>
>> Did you check to see whether the wszName itself was not empty to begin
>with?
>
>No, I thought that atleast one of the adapters had to have a name... but if
>this is empty, how can I get the name of the adapter?
Did you try printing the description, just to see if it's returning
anything?
<MSDN>
if ((dwRetVal = GetIfTable(ifTable, &dwSize, 0)) == NO_ERROR) {
if (ifTable->dwNumEntries > 0) {
pMibIfRow->dwIndex = 1;
if ((dwRetVal = GetIfEntry(pMibIfRow)) == NO_ERROR) {
printf("\tDescription: %s\n", pMibIfRow->bDescr);
<\MSDN>
/*should be able to also do*/
printf("\tName: %ls\n", pMibIfRow->wszName);
Technical Details
Message-ID:
<9imc309cmk1op06fsrasd67lp8ns612ha6@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!peernews-us.colt.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40355703@newsgroups.borland.com> <40355ff1$1@newsgroups.borland.com> <4035c516$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,eb9f277508d90b5a X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-20 11:40:16 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Adaptername? Date: Fri, 20 Feb 2004 11:10:19 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <9imc309cmk1op06fsrasd67lp8ns612ha6@4ax.com> References: <40355703@newsgroups.borland.com> <40355ff1$1@newsgroups.borland.com> <4035c516$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 67.31.164.52 X-Trace: newsgroups.borland.com 1077304219 67.31.164.52 (20 Feb 2004 11:10:19 -0800) Lines: 27 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!peernews-us.colt.net!colt.net!peernews3.colt.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail