You are here:

C++/motherboard serialnumber

Advertisement


Question
-------------------------
Followup To
Question -
sir,
i want to know how we get the motherboard serial number in C/C++.is ther any windows api which uniquely identify the motherboard.i already try WMI which provides api to access motherboard information still it gives all information except serial number.Please help me .Its very urgent.
if possible gave me a sample code.
Thanks and regards
AnkitJain
Answer -
Hello Ankit,
Thankyou for your question. I apologize for the
delay. If i am not wrong then, you have to use
microsoft WMI Scripting Library to find the mother
board serial number. I have written down some code
in VB, you can go through it, and hope it will help
you, still any confusions, you can contact me.

Dim objs
Dim obj
Dim WMI

Set WMI = GetObject("WinMgmts:")
Set objs = WMI.InstancesOf("Win32_BaseBoard")
For Each obj In objs
  MsgBox obj.SerialNumber
Next

'Microsoft WMI Scripting Library'

Take care.
Regards,
Professional


Sir,
I tried this code also but it also give blank messagae box instead of giving serial number .please help.and run this code on your computer and tell whether it gives serial number of your motherboard or not.
if not then pls give some other solution

thanks
AnkitJain

Answer
Dear Ankit,
I would make this program for you in a day or two.
Can you clearly specify me the functionality of
the program you want to make, so that i can provide
you with the complete source code of this question
and the technical document to understand. it.

Regards
professional

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Professional

Expertise

I can answer any question about functions,pointers,structures,object oriented programming basics of classes and data structures.My strong field is structured programming.

Experience

I have got 2 years experiece under C . I am able to answer about the structured concepts pointers to a little extent,OOP concepts. I have also experience in data Strucutres like Linked List, Stacks , Queues, Heaps, B Trees, Red Black Trees. I will try to satisfy with my knowledge. I am the Student of an expert here Martin, what i have learnt today, i just owe my every knowledge to him. He is the greatest.

©2016 About.com. All rights reserved.