🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: network serial number

#9747
From: Emmanuel
Date: Sun, 13 Jun 2004 17:32
48 lines
2127 bytes
Dear Sir,

First of all thank you that I can find this resource
when I test it, I find a little problem in the method 2 & 3
in  http://bdn.borland.com/article/0,1410,26040,00.html,

Method 2- COM CUID API
I find that it return many different results not a unique number and none of
them is my MAC address,
why method 2 not suitable for my case?

Method 3-Using the SNMP Extension API
I find that there is a little typing mistake
AsnObjectIdentifier MIB_ifMACEntAddr = { sizeof(OID_ipMACEntAddr)
sizeof(UINT), OID_ipMACEntAddr };

it shoud be  +,- *,/ between   sizeof(OID_ipMACEntAddr)  sizeof(UINT)

and the result of this program for my computer is not network card in my
computer

Emmanuel

"Vladimir Afanasyev" <avv@systema.kiev.ua> д���ʼ�
news:40b30451@newsgroups.borland.com...
>
> Hi,
>
> "Berlani" <jc.berlani@vacotec.ch> wrote:
> >Hello,
> >
> >Is anybody could tell me how to obtain the serial number of the network
card
> >?
>
> If you mean MAC address -
>
> http://bdn.borland.com/article/0,1410,26040,00.html
>
>
> You also can use WMI -
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19443
>
> or
>
> http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=21010
>
> Vladimir.
Technical Details
Message-ID: <40cc8f41$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40b1b974$1@newsgroups.borland.com> <40b30451@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,d0c8dbfe3b2a0209
X-Google-Attributes: gid10cc67,public
From: "Emmanuel" <emmanuel@erphk.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <40b1b974$1@newsgroups.borland.com> <40b30451@newsgroups.borland.com>
Subject: Re: network serial number
Date: Mon, 14 Jun 2004 01:32:09 +0800
Lines: 50
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: 202.146.98.71
Message-ID: <40cc8f41$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1087147841 202.146.98.71 (13 Jun 2004 10:30:41 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail