Recent

Author Topic: How to Get the UUID?  (Read 8431 times)

mdkass

  • New member
  • *
  • Posts: 8
How to Get the UUID?
« on: January 14, 2011, 09:35:11 pm »
Hello Experts,

Do you have any Idea how to get the UUID?

Regards.

Phil

  • Hero Member
  • *****
  • Posts: 2750
Re: How to Get the UUID?
« Reply #1 on: January 14, 2011, 09:41:36 pm »
You mean create a UUID?

Maybe CreateGUID in SysUtils?

Thanks.

-Phil

eny

  • Hero Member
  • *****
  • Posts: 1588
Re: How to Get the UUID?
« Reply #2 on: January 14, 2011, 09:47:56 pm »
Or in the IDE pressing Ctrl-Shift-G?
All posts based on: Win10 (Win64); Lazarus 1.8.0 'stable' (#56594 win64) unless specified otherwise...

mdkass

  • New member
  • *
  • Posts: 8
Re: How to Get the UUID?
« Reply #3 on: January 15, 2011, 12:21:16 pm »
I'm sorry, I think my question was not clear enough.
I'm looking for a unique machine Identifier and one friend advised me to use the hardware UUID  (Unique User ID).

I'm not talking about the GUID.

felipemdc

  • Administrator
  • Hero Member
  • *
  • Posts: 3541
Re: How to Get the UUID?
« Reply #4 on: January 15, 2011, 02:35:20 pm »
You can use TProcess to execute system_profiler and then parse the result:

user-46-113-129-147:~ felipe$ system_profiler
Hardware:

   Hardware Overview:

     Model Name: MacBook
     Model Identifier: MacBook6,1
     Processor Name: Intel Core 2 Duo
     Processor Speed: 2,26 GHz
     Number Of Processors: 1
     Total Number Of Cores: 2
     L2 Cache: XXXXXXX
     Memory: XXXXXXX
     Bus Speed: XXXXXXX
     Boot ROM Version: XXXXXXX
     SMC Version (system): XXXXXXX
     Serial Number (system): XXXXXXX
     Hardware UUID: XXXXXXX
....