Hi, All
Some unique ID of the Windows OS can be got basing on this lib.
Such sub is prepared:
Who uses Windows OS - let's test this code, please ?
It seems, that not all Windows PC can get these unique IDs from the OS.
My PC result (admin user in Win10) is: phlwt048jbq0a1178bfbff00810f10_39444335-3130-4435-334e-e4e7494e37a4_504491340_s3t8na0kb02984_e49e794994e9379a4_hpqoem-1072009_amdryzen52500uwithradeonvegamobilegfx_84e7103c_phlwt048jbq0a1_b23bf05f51ae2c0f6a9a3d379b3b6ba0
So, it's OK, can be used for PC identification.
The project for compilation is attached (lib JUUID v.2.7 is here): if you have 5 mins, please, start and reply to this thread with your result - is it non-null ?
What is your Windows version and user type (admin) ?
Some unique ID of the Windows OS can be got basing on this lib.
Such sub is prepared:
B4X:
Sub Get_DeviceID As String
Dim sb As StringBuilder
sb.Initialize
Dim sr As String = pdd.Get_MotherboardSN
If sr <> Null And Not(sr.Contains("O.E.M")) Then sb.Append(sr)
sr = pdd.Get_CPUID
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_MachineID
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_HddID1
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_HddID2
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_MacId
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_BiosVersion
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_CPUName
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_GpuID
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_MotherboardSN2
If sr <> Null Then sb.Append(sr).Append("_")
sr = pdd.Get_HWID1
If sr <> Null Then sb.Append(sr)
sr = sb.ToString
If sr.As(String).Trim = "" Then
sr = sr & GetEnvironmentVariable("computername","") & GetSystemProperty("user.name","")
End If
sr = sr.Replace(" ", "").Replace("\", "").Replace("/", "").Replace(":", "")
' If sr.Length > 48 Then
' sr = sr.SubString2(0, 48)
' End If
Return sr.ToLowerCase
End Sub
Who uses Windows OS - let's test this code, please ?
It seems, that not all Windows PC can get these unique IDs from the OS.
My PC result (admin user in Win10) is: phlwt048jbq0a1178bfbff00810f10_39444335-3130-4435-334e-e4e7494e37a4_504491340_s3t8na0kb02984_e49e794994e9379a4_hpqoem-1072009_amdryzen52500uwithradeonvegamobilegfx_84e7103c_phlwt048jbq0a1_b23bf05f51ae2c0f6a9a3d379b3b6ba0
So, it's OK, can be used for PC identification.
The project for compilation is attached (lib JUUID v.2.7 is here): if you have 5 mins, please, start and reply to this thread with your result - is it non-null ?
What is your Windows version and user type (admin) ?
Attachments
Last edited: