dithora86 wrote: > hi guys, > > do you know about reading cpu id? > I'm using Onguard Component, > the code is like this... > > -------------------------------------------------------- > procedure TRegForm.FormCreate(Sender: TObject); > var > LI : longint; > begin > LI := GenerateMachineModifierPrim; > edtCPUID.Text := BufferToHex(LI, SizeOf(longint)); > end; > --------------------------------------------------------- > > but, this cpu id can change in windowsXP SP2. > I need your help guys. > > > best regards,
Use the CPUID assembler command using Delphi's inline assembler. Here are a couple websites you might want to check out: http://www.clippings.vivitec.com.au/pp_article_id_7.html http://www.sandpile.org/ia32/cpuid.htm And don't forget to get a copy of the official IA-32 Developer Manual from Intel's website (developer.intel.com) that describes CPUID in excruciating detail. BTW, the CPUID's serial number command is disabled on most Intel-based computers. You can't rely on it to return anything but a bunch of zeros. (Most people asking for CPUID are after the serial # for integrating it with their software - typically disabled by the BIOS). -- Thomas Hruska CubicleSoft President Ph: 517-803-4197 Safe C++ Design Principles (First Edition) Learn how to write memory leak-free, secure, portable, and user-friendly software. Learn more and view a sample chapter: http://www.CubicleSoft.com/SafeCPPDesign/ ----------------------------------------------------- Home page: http://groups.yahoo.com/group/delphi-en/ To unsubscribe: [EMAIL PROTECTED] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/delphi-en/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

