Code: Select all
if (SubStr(DeviceKey,1,18)="\Registry\Machine\")
DeviceKey := SubStr(DeviceKey,19)
As a matter of interest, trawled through the local registry for all occurrences of the DeviceKey value, wherewith some, or all, are likely used by the AMD driver for an old card in the rig, and came up with these:
Spoiler
If we were to ever use the deviceKey itself, it surely is just the GUID hex numeric with the curly braces, so extraction goes something like:
Code: Select all
startPos := Instr(DeviceKey, "{")
DeviceKey := SubStr(DeviceKey,startPos, Instr(DeviceKey, "}") - startPos + 1))
Google doesn't reveal a lot of stuff about it- a lot of interesting threads dealing with low level APIs found in places like OSROnline used to have a high search relevance, not so much these days.