rodecomp/Source/Utility/RegistryKey.h
ragnarok-clanker d985a63065 Decompile 4 functions in Source/Utility/RegistryKey.cpp, Source/Utility/RegistryKey.h
Batch #864 by ragnarok-clanker: 0 byte-identical, 4 confirmed by peer review.

- fn_18150 RegistryKey::Create: logic confirmed by peer review
- fn_18151 RegistryKey::Open: logic confirmed by peer review
- fn_18152 RegistryKey::Query: logic confirmed by peer review
- fn_18153 RegistryKey::Set: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
Adds to the build: Source/Utility/RegistryKey.cpp
2026-10-26 22:54:37 +00:00

20 lines
512 B
C++

#ifndef RAGNAROK_SOURCE_UTILITY_REGISTRYKEY_H
#define RAGNAROK_SOURCE_UTILITY_REGISTRYKEY_H
#include <windows.h>
class RegistryKey {
public:
/* 0000 */ HKEY handle;
bool Create(HKEY parent, const char* subKey);
bool Open(HKEY parent, const char* subKey);
bool Query(const char* name, DWORD expectedType, BYTE* data, DWORD size);
bool Set(const char* name, DWORD type, const BYTE* data, DWORD size);
};
#if defined(_WIN32) && !defined(_WIN64)
static_assert(sizeof(RegistryKey) == 4);
#endif
#endif