221
240
byte buf[SERIALNUMBER_BUFSIZE];
222
241
int buflen = SERIALNUMBER_BUFSIZE;
231
250
wsprintfW(key, L"Software\\Microsoft\\MSLicensing\\HardwareID");
233
252
code = gp_getenv_registry(HKEY_LOCAL_MACHINE, key, "ClientHWID", (char *)buf, &buflen);
235
254
return (int)(gs_serialnumber); /* error - just return the default */