Generic Class Library - bugs, description, questions, usage and suggestions - page 31

 
JRandomTrader:

This is the VM in the KVM. There's not even a mention of the mother.

And what can be used as a binding so that it is always identified?

 
Vitaly Muzichenko:

And what can be used as a binding so that it is always identified?

Probably UUID: 1C48EB8C-FD03-4CD4-A3D9-E3133CB57511 from System Information.

 
JRandomTrader:

Probably UUID: 1C48EB8C-FD03-4CD4-A3D9-E3133CB57511 from System Information.

Could not find how to get this from WinAPI

 
Vitaly Muzichenko:

Couldn't find how to get this from WinAPI

I'm a far cry from wind. Maybe this will help: http://gnuwin32.sourceforge.net/packages/dmidecode.htm https://www.dmtf.org/sites/default/files/standards/documents/DSP0134_2.6.0.pdf

dmidecode for Windows
  • gnuwin32.sourceforge.net
dmidecode {whatisit}
 

I read it, it didn't help. Read a lot, but found nothing.

 
Vitaly Muzichenko:

Who can tell me if it is possible to run this code in Metatrader?

---

Is there any other way to get the Motherboard SerialNumber?

Wouldn't it work to bind to product code and/or device code from windup (W10)?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion: ProductId

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/SQMClient: MachineId

 
Edgar Akhmadeev:

Can't you bind to the product code and/or device code from the windows (W10)?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion: ProductId

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/SQMClient: MachineId

On linux, /etc/machine-id is just a file.

Yes, in recent Ubuntas obtaining an IP by DHCP is tied by default to it, not to the MAC, but this can be disabled as well.

 
Edgar Akhmadeev:

Can't you bind to the product code and/or device code from the windows (W10)?

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion: ProductId

HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/SQMClient: MachineId

It might work, but how do you do it on mql?

 
Vitaly Muzichenko:

It might work, but how to do it in mql?

Through WinAPI.

MQL5\Include\WinAPI\winreg.mqh

RegGetValueW()

https://docs.microsoft.com/en-us/windows/win32/api/winreg/nf-winreg-reggetvaluew

RegGetValueW function (winreg.h) - Win32 apps
RegGetValueW function (winreg.h) - Win32 apps
  • 2020.09.24
  • mcleanbyron
  • docs.microsoft.com
Retrieves the type and data for the specified registry value.
 

Product code - the serial number of a particular Windows installation, will change with a clean reinstallation.

Device code - The combined hardware id of the computer. This is retained for minor upgrades.

Reason: