Solved

Retrieving a MAC address

Posted on 1997-06-19
6
450 Views
Last Modified: 2013-11-20
I can retrieve a MAC address in dos by typing "getmac" followed by the machine name?  Is there an windows API or MFC equivalent that will retrieve the machine address?
0
Comment
Question by:JHaack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 4

Expert Comment

by:mbhakta
ID: 1302197
This is a win 95 code grabbed from the MSDN

mov  ah, 16h           ; Windows multiplex function
mov  al, 8Eh           ; VM Title
mov  di, seg VMTitle   ; see below
mov  es, di
mov  di, offset VMTitle
mov  cx, Size          ; see below
mov  dx, 3             ; Get Virtual Machine Title
int  2Fh
cmp  ax, 1
je   success


0
 

Author Comment

by:JHaack
ID: 1302198
I am not looking for the machine title.  I am looking for the MAC address, given the machine title.  In MSDOS, the MAC is retrieved with the getmac command followed by the machine title.  How is this done in C++/MFC?
0
 
LVL 3

Expert Comment

by:vinniew
ID: 1302199
You might check out the ARP cache.  You would access it using SMTP protocols.

V

0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:JHaack
ID: 1302200
Let me elaborate.  I am looking for a function which will retrieve a unique identification number for a specific computer.  I want to use the unique identification number to create an application which will execute only on my machine.  Is there a simple API or MFC call which will retrieve such information?
0
 
LVL 3

Accepted Solution

by:
jaba earned 10 total points
ID: 1302201
Get source of program recivigd MAC address from my ftp
ftp://194.87.205.60/macaddr
You cant use www browser for it, because my ftp not allowed for anonymous
Use login:jaba password:goout

0
 

Author Comment

by:JHaack
ID: 1302202
The effort is worth 100 points.  However, I don't have the netbios header file, so I can't compile it.  I'll give you 100 points now.  I'll give you another 100 if we can get it to work properly.  For now, we simply need "netbios.h".
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 54
Named range not carried over 10 66
has22 challenge 11 107
withoutTen challenge 14 137
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question