How to get the Node ( aka MAC or Ethernet ) Address of the computer in VC++ 
Author Message
 How to get the Node ( aka MAC or Ethernet ) Address of the computer in VC++

How can I find out the MAC(Ethernet Address) of the computer programatically
under Windows NT 4.0 with VC++.  The command line tool "ipconfig" dumps all
the network configuration information including the MAC address. So I guess
there must be an API call that should give the information. But I could not
find any.

Any help is much appericiated.

Thanks,
-Kathir.



Mon, 03 Dec 2001 03:00:00 GMT  
 How to get the Node ( aka MAC or Ethernet ) Address of the computer in VC++
if NetBIOS can be assumed to be present, how about Netbios() call ?
sCaLLioN


Quote:
> How can I find out the MAC(Ethernet Address) of the computer
programatically
> under Windows NT 4.0 with VC++.  The command line tool "ipconfig" dumps
all
> the network configuration information including the MAC address. So I
guess
> there must be an API call that should give the information. But I could
not
> find any.

> Any help is much appericiated.

> Thanks,
> -Kathir.



Mon, 03 Dec 2001 03:00:00 GMT  
 How to get the Node ( aka MAC or Ethernet ) Address of the computer in VC++
Unfortunately the client PC will not necessary have NetBIOS installed. Only
protocol layer guranteed to be present would be the TCP/IP layer ( and the
Winsock DLL).
Quote:

>if NetBIOS can be assumed to be present, how about Netbios() call ?
>sCaLLioN



>> How can I find out the MAC(Ethernet Address) of the computer
>programatically
>> under Windows NT 4.0 with VC++.  The command line tool "ipconfig" dumps
>all
>> the network configuration information including the MAC address. So I
>guess
>> there must be an API call that should give the information. But I could
>not
>> find any.

>> Any help is much appericiated.

>> Thanks,
>> -Kathir.



Tue, 04 Dec 2001 03:00:00 GMT  
 How to get the Node ( aka MAC or Ethernet ) Address of the computer in VC++
Call DeviceIoControl with IOCTL_NDIS_QUERY_GLOBAL_STATS. look at the DDK
sample
called MACADDR.
HTH
sCaLLioN


Quote:
> Unfortunately the client PC will not necessary have NetBIOS installed.
Only
> protocol layer guranteed to be present would be the TCP/IP layer ( and the
> Winsock DLL).


> >if NetBIOS can be assumed to be present, how about Netbios() call ?
> >sCaLLioN



> >> How can I find out the MAC(Ethernet Address) of the computer
> >programatically
> >> under Windows NT 4.0 with VC++.  The command line tool "ipconfig" dumps
> >all
> >> the network configuration information including the MAC address. So I
> >guess
> >> there must be an API call that should give the information. But I could
> >not
> >> find any.

> >> Any help is much appericiated.

> >> Thanks,
> >> -Kathir.



Tue, 04 Dec 2001 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. MAC ADDRESS ie Ethernet Card Address

2. Getting the ethernet address from an ethernet card.

3. How to get ethernet(MAC) address?

4. Help: how do get the ethernet (mac) address in c

5. Get Ethernet address (MAC)?

6. Get Ethernet address (MAC)?

7. How do I get the MAC address of a Ethernet Card

8. Ethernet Interface MAC Address

9. c code for the MAC Address from an Ethernet Adapter

10. Get Ethernet address (MAC)?

11. How do I get the MAC address of a Ethernet Card

12. how to get the MAC address of ethernet adapter

 

 
Powered by phpBB® Forum Software