09-14-2025, 05:12 AM
(09-14-2025, 03:19 AM)David Roberts Wrote: Thanks, Stuart
I am getting 'Undefined equate' on line #14 - RegOpenKeyEx
Sorry , I used José's includes which has the equate:
%HKLM = %HKEY_LOCAL_MACHINE
With PB includes, you have to specify the root key in full:
retval = RegOpenKeyEx( %HKEY_LOCAL_MACHINE,"HARDWARE\DESCRIPTION\System\CentralProcessor\0" ,0,%key_query_value,hkey)