Page 1 of 1

win32.getRegistry() and unique machine ID

PostPosted: Mon Oct 28, 2013 12:26 pm
by robocod
I was trying to use the new win32.getRegistry() method.

I wanted to find a unique machine ID, which could be used for node-locked licenses, etc.

This code seems to do the job

Code: Select all
    local s = win32.getRegistry("HKLM SOFTWARE\\Microsoft\\Cryptography", "MachineGuid");
    if s then
        host:trace(s);
    end


Maybe there are better keys? Or is that one ok? Does it work on all versions of Windows? Not sure.

Re: win32.getRegistry() and unique machine ID

PostPosted: Thu Mar 08, 2018 1:54 am
by imxuf92
I can't get this to work... It always returns nil.

Perhaps it's a permissions issue? I've verified that the value exists...

Is anyone using this method successfully on Windows 10?

Re: win32.getRegistry() and unique machine ID

PostPosted: Sun Mar 11, 2018 6:10 am
by Apprentice
Forwarded to the development team.