CreateMachineID

TurboPack OnGuard FMX

CreateMachineID

Navigation:  »No topics above this level«

CreateMachineID

Return to chapter overview

This is a private function first added in version 1.05.

In version 1.14 the Ansi parameter was added to the Win32 version.

 

function CreateMachineID(MachineInfo : TEsMachineInfoSet; Ansi: Boolean = True) : LongInt;

function CreateMachineID(MachineInfo : TEsMachineInfoSet) : LongInt;

 

 

Originally declared in OnGuard it was moved to OgUtil in version 1.15.

 

Summary

Delphi

FPC

Kylix

Win16

Win32

Win64

MacOS

iOS

Android

Linux

UNIX

Win32

Win64

Linux

midUser

n/a

Yes

n/a

n/a

n/a

n/a

n/a

Yes

Yes

n/a

n/a

midSystem

Yes

Yes

n/a

n/a

n/a

n/a

n/a

Yes

Yes

n/a

Yes

midNetwork

Yes

Yes

n/a

n/a

n/a

n/a

n/a

Yes

Yes

n/a

Yes

midDrives

Yes

Yes

n/a

n/a

n/a

n/a

n/a

n/a

Yes

n/a

Yes

Following added in version 1.15

midCPUID

n/a

Yes

n/a

n/a

n/a

n/a

n/a

n/a

?

n/a

n/a

midCPUIDJCL

n/a

?

n/a

n/a

n/a

n/a

n/a

n/a

?

n/a

n/a

midBIOS

n/a

Yes

n/a

n/a

n/a

n/a

n/a

n/a

?

n/a

n/a

midWinProd

n/a

Yes

n/a

n/a

n/a

n/a

n/a

n/a

?

n/a

n/a

midCryptoID

n/a

Yes

n/a

n/a

n/a

n/a

n/a

n/a

?

n/a

n/a

midNetMAC

n/a

n/a

n/a

n/a

n/a

n/a

n/a

n/a

n/a

n/a

n/a

midDomain

n/a

Yes

n/a

n/a

n/a

n/a

n/a

n/a

?

n/a

n/a

 

 

 

 

MachineInfo

Comments

midUser

on Win32 uses the HKEY_LOCAL_MACHINE registry hive to read the values in Software\Microsoft\Windows\CurrentVersion or Software\Microsoft\Windows NT\CurrentVersion.  Uses the values of RegisteredOwner and RegisteredOrganization.

 

on FPC uses Environment variables USERNAME, USER, or LOGNAME.

midSystem

on Win16 uses the Windows directory, Windows System directory, GetWinFlags, and WinProcs.GetVersion.

on Win32 uses GetSystemInfo's dwOemId and dwProcessorType values.

 

on FPC uses /proc/cpuinfo, /proc/sys/kernel/version, /proc/sys/kernel/osrelease, /proc/sys/kernel/hostname files.

on Kylix uses /proc/cpuinfo, /proc/sys/kernel/version, /proc/sys/kernel/osrelease, /proc/sys/kernel/hostname files.

midNetwork

on Win16 compares the Data4 field of two GUIDs.  If the same then uses the Data4 field.

on Win32 compares the Data4 field of two GUIDs.  If the same then uses the Data4 field.

 

on FPC compares the Data4 field of two GUIDs.  If the same then uses the Data4 field.

on Kylix compares the Data4 field of two GUIDs.  If the same then uses the Data4 field.

midDrives

on Win16 uses the GetDiskSerialNumber for each fixed drive from C: to Z:.

on Delphi-Win32 uses the GetVolumeInformation for each fixed drive from C: to Z:.  Ignores SUBST drives.

 

on Kylix uses the GetDiskSerialNumber for each fixed drive from 2 to 26 (C to Z).

midCPUID

on Win32 uses the HKEY_LOCAL_MACHINE registry hive to read the values in Software\Microsoft\Windows NT\CurrentVersion.  Uses the values of Identifier, ProcessorNameString, and VendorIdentifier.

midCPUIDJCL


midBIOS

on Win32 uses the HKEY_LOCAL_MACHINE registry hive to read the values in HARDWARE\DESCRIPTION\System\BIOS.  Uses the values of BaseBoardManufacturer, BaseBoardProduct, BaseBoardVersion, BIOSReleaseDate, BIOSVendor, BIOSVersion, SystemFamily, SystemManufacturer, SystemProductName, SystemSKU, and SystemVersion.

midWinProd

on Win32 uses the HKEY_LOCAL_MACHINE registry hive to read the values in Software\Microsoft\Windows NT\CurrentVersion.  Uses the values of ProductID, InstallDate, ProductName, InstallationType and EditionID.

midCryptoID

on Win32 uses the HKEY_LOCAL_MACHINE registry hive to read the values in Software\Microsoft\Cryptography.  Uses the value of MachineGUID.

midNetMAC


midDomain

on Win32 uses the HKEY_LOCAL_MACHINE registry hive to read the values in System\CurrentControlSet\Services\Tcpip\Parameters.  Uses the values of DhcpDomain, Domain, ICSDomain, and "NV Domain".