Click here to Skip to main content
16,011,647 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: program optimization Pin
(Steven Hicks)n+15-Mar-04 18:38
(Steven Hicks)n+15-Mar-04 18:38 
GeneralRe: program optimization Pin
Tim Smith6-Mar-04 3:40
Tim Smith6-Mar-04 3:40 
GeneralDirectory pick! Pin
catngo5-Mar-04 14:40
catngo5-Mar-04 14:40 
GeneralRe: Directory pick! Pin
Prakash Nadar5-Mar-04 15:01
Prakash Nadar5-Mar-04 15:01 
GeneralRe: Directory pick! Pin
Ravi Bhavnani6-Mar-04 5:29
professionalRavi Bhavnani6-Mar-04 5:29 
QuestionHow to get MAC address (physical) Pin
gilc1375-Mar-04 14:09
gilc1375-Mar-04 14:09 
AnswerRe: How to get MAC address (physical) Pin
Anthony_Yio5-Mar-04 22:24
Anthony_Yio5-Mar-04 22:24 
GeneralRe: How to get MAC address (physical) Pin
gilc1376-Mar-04 7:12
gilc1376-Mar-04 7:12 
Thanks for your reply,

Let me just clarify exactly what I trying to do (I fairly new to this):-

We have a application software that can run on windows and currently the way the software licensing piece works, is that it using the netbios method to retrieve the NIC's mac address. This method works fine if you have netbios installed and are physically connected to a network. There are situations that clients do not have netbios or that they want to run this application on a standalone P.C (not connected to a network).

What I trying to do is to include other methods of obtaining the MAC addresses as part of the licensing checking to ensure that we get all valid ethernet MAC addresses from the physical network cards installed on the local server or local p.c, Then just pass a list of valid MAC address to the licensing function (Clients can have mupltiple network cards installed).

I have added the use of getadaptersinfo, snmp method (query through Winsock) and UuidCreateSequential (this only support single NIC's). On the first two methods I have coded it to only pick up ethernet adapters (adapter type = 6)

These other methods seem to work fine, but I have come accross a situation when someone has VPN software installed on there P.C (not microsoft VPN) and the methods that I have added are picking this virtual adapter MAC address (which is different from any of the network cards installed on the P.C).

Therefore I'm not sure if the 3rd party VPN software has defined thier virtual adapter incorrectly as a ethernet adpater(6), when they should have defined their adapter as a PPP adapter or anything other then a ethernet adapter. OR if there is a method to exclude VPN adapters so that I can return only valid MAC addresses from the physical network cards installed on the local server or local P.C

Apoligize for the long winded message.

Thanks for your suggestion,

Thanks in advance

Gilc137
GeneralRe: How to get MAC address (physical) Pin
Anthony_Yio8-Mar-04 1:19
Anthony_Yio8-Mar-04 1:19 
GeneralAutomatic code comment in C++ Pin
Filousov5-Mar-04 13:09
Filousov5-Mar-04 13:09 
GeneralRe: Automatic code comment in C++ Pin
Anthony_Yio5-Mar-04 20:39
Anthony_Yio5-Mar-04 20:39 
Generalnetworking Pin
til rules5-Mar-04 11:49
til rules5-Mar-04 11:49 
GeneralRe: networking Pin
Rickard Andersson205-Mar-04 13:12
Rickard Andersson205-Mar-04 13:12 
GeneralRe: networking Pin
Prakash Nadar6-Mar-04 3:15
Prakash Nadar6-Mar-04 3:15 
GeneralMessage Maps in Services Pin
mmica5-Mar-04 10:59
mmica5-Mar-04 10:59 
GeneralRe: Message Maps in Services Pin
Prakash Nadar5-Mar-04 13:23
Prakash Nadar5-Mar-04 13:23 
GeneralHelp with OnPaint Pin
S van Leent5-Mar-04 10:56
S van Leent5-Mar-04 10:56 
GeneralRe: Help with OnPaint Pin
LunaticFringe5-Mar-04 12:46
LunaticFringe5-Mar-04 12:46 
GeneralRe: Help with OnPaint Pin
Prakash Nadar5-Mar-04 13:21
Prakash Nadar5-Mar-04 13:21 
GeneralRe: Help with OnPaint Pin
John R. Shaw6-Mar-04 6:18
John R. Shaw6-Mar-04 6:18 
GeneralRe: Help with OnPaint Pin
Joe Woodbury6-Mar-04 11:51
professionalJoe Woodbury6-Mar-04 11:51 
Generalplay music in the background of my program Pin
til rules5-Mar-04 10:41
til rules5-Mar-04 10:41 
GeneralRe: play music in the background of my program Pin
LunaticFringe5-Mar-04 12:41
LunaticFringe5-Mar-04 12:41 
Generalin confused Pin
til rules5-Mar-04 10:18
til rules5-Mar-04 10:18 
GeneralRe: in confused Pin
David Crow5-Mar-04 10:24
David Crow5-Mar-04 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.