Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how get cpu id

Status
Not open for further replies.

fuadhamidov

Programmer
Sep 22, 2003
98
TR
hi

i need to get cpu id.
i have sample kod to get hdd volume number. but i think it should change while the user changes partions in his or her hdd.

i have found sample code for .net.

thanks for any help
 
I guess that sample code you have for getting the HDD volume number is in C and invoked with JNI? Since I don't have any idea how that should be possible in a sandbox, which is basically a virtual machine, which in turn is something like a simulated computer (on the real computer)...

If that is so, you can look at some assembler code (well-documented) and the SUN JNI tutorial.

However, be aware that you lose all advantages in terms of cross-platform operability if you use JNI...

haslo@haslo.ch - www.haslo.ch​
 
Well, if you're planning on losing the closs platform thingie, maybe you don't need JNI and a System.exec() call would do the trick.

That allows you to execute OS commands and get their output.

Cheers.

Dian
 
fuadhamidov -

You should know that most people have the CPU ID hidden by their BIOS (I know I do) for privacy reasons.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top