Dmitry Timoshkov (@dmitry) commented about dlls/ntoskrnl.exe/pnp.c:
+ return; + + for (;;) + { + swprintf( key_path, ARRAY_SIZE(key_path), L"Config Manager\\Enum\\%08x", counter++ ); + + if ((ret = RegCreateKeyExW( HKEY_DYN_DATA, key_path, 0, NULL, + REG_OPTION_VOLATILE, KEY_ALL_ACCESS, NULL, &key, &disposition ))) + { + ERR( "Failed to create %s, error %lu.\n", debugstr_w(key_path), GetLastError() ); + return; + } + + if (disposition == REG_CREATED_NEW_KEY) + { + RegSetValueExW( key, L"HardWareKey", 0, REG_SZ, (BYTE *)device_instance_id, Probably it's just me, but "HardwareKey" seems like a more natural capitalization style.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9063#note_116928