It is my headache. Please help me.

yunhaohu
yunhaohu used Ask the Experts™
on
Hi all,
I am now very cold.
Can you tell me how to get the system id in windows by programming? And what about BIOS info?
I think microsoft maybe supply some APIs, but I can't them.
Can you tell me some information? Thanks for your kind.





Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kyle SchroederEndpoint Engineer

Commented:
What do you mean "system id"?  Like the serial number?  I think you may be looking for WMI (Windows Management Interface) libraries.

http://msdn.microsoft.com/downloads/default.asp?URL=/code/sample.asp?url=/msdn-files/027/001/566/msdncompositedoc.xml

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmisdk/wmi/wmi_start_page.asp

-dog*
Kyle SchroederEndpoint Engineer

Commented:
Why are you cold??

Author

Commented:
Dear Dogztar,
Thanks for your help.
I am feeling cold because now it is my hard time. The WMI class maybe work in Win2000, but how about in Win98? WMI isn't supported in Win98. Is it right? I think I should find out a way to solve the problem independence of OS.
Thanks. You are right. The "System id " is the serial number. What about other solutions?

Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Endpoint Engineer
Commented:
Are you looking for a way to get a serial number from any system, or just "branded" PCs like Dell, Compaq, etc?

What might work better instead of WMI would be DMI (Distributed Management Interface).  This is more OS independent, but might require a driver to be loaded on the PC in question.  See:
http://www.dmtf.org/standards/standard_dmi.php
http://www.dmtf.org/standards/index.php (other related info)

What is your goal in obtaining this information?  Are you trying to manage PCs in a business environment?  If so, you might want to check out Altiris:

http://www.altiris.com/products/asset/index.asp

-dog*

Author

Commented:
Dear Dogztar,
Thanks.
I am just trying to implement with DMI. I am trying to use inline asm to do that.
Thanks for the useful linkage.


Author

Commented:
I am appreciated for the help from Dogztar and others.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial