Open nixawk opened 7 years ago
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