954,498 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to get Motherboard information from C/C++ under Windows ?

Hi!

I develop the app, that must be binded to hardware-specific information.
This is a part of license protection scenario.
The serial number of motherboard must be obtained.

How to do it under Windows ?

AntonAL
Newbie Poster
3 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 

Do you have a network card? Check here.

donaldw
Posting Whiz in Training
258 posts since Nov 2009
Reputation Points: 56
Solved Threads: 18
 

>The serial number of motherboard must be obtained.
>How to do it under Windows ?

WMI FAQ .

Narue
Bad Cop
Administrator
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
 

From another CG thread:

Try calling IWbemServices->GetObject(...) using "Win32_BaseBoard.Tag=\"Base Board\"" as the class name.

donaldw
Posting Whiz in Training
258 posts since Nov 2009
Reputation Points: 56
Solved Threads: 18
 

Avoid WMI (slow and not installed by default)
Use Kernel and Shell apis

marco93
Junior Poster
132 posts since Apr 2008
Reputation Points: -76
Solved Threads: 14
 
Do you have a network card? Check here.


Unfortunately, these methods are getting not true MAC address. I can change it via Control Panel > Network and Internet > Network and Sharing Center > Change Adapter settings - Right click on adapter > Properties > "Configure" button > tab "Advanced" > choose "Network Address" and change it.

After changing the MAC by hands, the apps in the tutorial and even Win API functions will return that address.

But, it must be some function, that returns true, hardware MAC address ...

AntonAL
Newbie Poster
3 posts since Nov 2009
Reputation Points: 10
Solved Threads: 0
 
Unfortunately, these methods are getting not true MAC address

try this:
go to the command prompt n type

ipconfig/all

this should tell u ur true hardware mac address.. it worked for me, the mac address will be given under something like "physical address"..

cheers :)
somjit{}

somjit{}
Junior Poster in Training
94 posts since Sep 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: