How to get serial number of motherboard using C++ on WINDOWS?
-
Hi friends, Can somebody provide me the sample code for getting serial number of motherboard using C++ on WINDOWS? Regards Aseem
-
Hi friends, Can somebody provide me the sample code for getting serial number of motherboard using C++ on WINDOWS? Regards Aseem
I doubt there is a common way to do that, if any at all (i might be wrong and correct me if i am, fellas), maybe check out if WMI[^] has a way, e.g. here[^] it mentions a "serial number" and "bios asset tag", that's probably not for the motherboard though... Here[^] are examples about how to use WMI in C++.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
-
Hi friends, Can somebody provide me the sample code for getting serial number of motherboard using C++ on WINDOWS? Regards Aseem
Check out the
DeviceID
property of theWin32_MotherboardDevice
class."One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
Hi friends, Can somebody provide me the sample code for getting serial number of motherboard using C++ on WINDOWS? Regards Aseem
You want WMI; see the SerialNumber property of the
Win32_BaseBoard
class. Note: AFAIK it gets stored in the BIOS memory, and flashing a new BIOS is likely to erase the number. :)Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
You want WMI; see the SerialNumber property of the
Win32_BaseBoard
class. Note: AFAIK it gets stored in the BIOS memory, and flashing a new BIOS is likely to erase the number. :)Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
Is that universal, i mean, whould that work on any system?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
-
Is that universal, i mean, whould that work on any system?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
Code-o-mat wrote:
whould that work on any system?
which part of it, getting it or getting rid of it? and I'm afraid I don't know for all systems either way. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
Code-o-mat wrote:
whould that work on any system?
which part of it, getting it or getting rid of it? and I'm afraid I don't know for all systems either way. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
I meant the "getting it" part. I guess the "getting rid" part would work on any system that can have a big enough hammer applied on. :)
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
-
I meant the "getting it" part. I guess the "getting rid" part would work on any system that can have a big enough hammer applied on. :)
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
as always with WMI, it depends on the manufacturers. If they decide not to bother, then it won't be there. But I think they do use it to their advantage, during manufacturing and later on, for serviceability. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
-
as always with WMI, it depends on the manufacturers. If they decide not to bother, then it won't be there. But I think they do use it to their advantage, during manufacturing and later on, for serviceability. :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.
Thought so really... so basicly there is no common way to get the info he requested, it is most likely he can get it trough WMI but there are no garantees...
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
-
I doubt there is a common way to do that, if any at all (i might be wrong and correct me if i am, fellas), maybe check out if WMI[^] has a way, e.g. here[^] it mentions a "serial number" and "bios asset tag", that's probably not for the motherboard though... Here[^] are examples about how to use WMI in C++.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <
Hi friend. Thanks for your reply. I have changed the plan. I'll use some third party licensing. Regards Aseem