win32.getRegistry() and unique machine ID

Moderator: admin

win32.getRegistry() and unique machine ID

Postby robocod » Mon Oct 28, 2013 12:26 pm

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.
User avatar
robocod
FXCodeBase: Graduate
 
Posts: 297
Joined: Thu May 10, 2012 4:25 pm

Re: win32.getRegistry() and unique machine ID

Postby imxuf92 » Thu Mar 08, 2018 1:54 am

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?
imxuf92
 
Posts: 24
Joined: Sat Jan 23, 2016 6:55 pm

Re: win32.getRegistry() and unique machine ID

Postby Apprentice » Sun Mar 11, 2018 6:10 am

Forwarded to the development team.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 18837
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia


Return to Indicator Development

Who is online

Users browsing this forum: No registered users and 5 guests