-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
HANDLE reg_key = NULL;
NTSTATUS status;
UNICODE_STRING key_path = RTL_CONSTANT_STRING(L"\\Registry\\Machine\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion");
OBJECT_ATTRIBUTE object_attribute = {0};
InitializeObjectAttributes(
&object_attribute,
&key_path,
OBJ_CASE_INSENSITIVE,
NULL,
NULL
);
status = ZwOpenKey(®_key, KEY_READ, &object_attribute);
if (!NT_SUCCESS(status))
{
....
}
References
Metadata
Metadata
Assignees
Labels
No labels