This commit is contained in:
love-code-yeyixiao 2024-08-03 12:13:05 +08:00
parent 649b7d46e7
commit 5fd67a950f
1 changed files with 4 additions and 4 deletions

View File

@ -1692,10 +1692,10 @@ _FX BOOLEAN Custom_ProductID(void) {
RtlInitUnicodeString(&uni,
L"\\registry\\Machine\\Software\\"
L"\\Microsoft\\Cryptography");
typedef HRESULT (*P_CoCreateGuid)(
GUID * pguid
typedef HRESULT(*P_CoCreateGuid)(
GUID* pguid
);
P_CoCreateGuid CoCreateGuid2=(P_CoCreateGuid)GetProcAddress(LoadLibrary(L"ole32.dll"), L"CoCreateGuid");
P_CoCreateGuid CoCreateGuid2 = (P_CoCreateGuid)Ldr_GetProcAddrNew(DllName_ole32, L"CoCreateGuid", L"CoCreateGuid");
status = Key_OpenIfBoxed(&hKey, KEY_SET_VALUE, &objattrs);
if (NT_SUCCESS(status)&&CoCreateGuid2) {
GUID guid;