2015-06-06 12:52:13 +00:00
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
// Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
|
|
|
|
// All rights reserved
|
2015-06-08 14:24:47 +00:00
|
|
|
// This file was released under the GPLv2 on June 2015.
|
2015-06-06 12:52:13 +00:00
|
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __MULTIENV_REG_TOOLS__H__
|
|
|
|
#define __MULTIENV_REG_TOOLS__H__
|
|
|
|
|
|
|
|
#include "check_env.h"
|
|
|
|
|
|
|
|
#ifndef WIN_32_MODE
|
|
|
|
#define HKEY HANDLE
|
|
|
|
#endif //WIN_32_MODE
|
|
|
|
|
|
|
|
NTSTATUS
|
|
|
|
RegTGetKeyHandle(
|
|
|
|
IN HKEY hRootKey,
|
2015-06-09 10:40:26 +00:00
|
|
|
IN PCWSTR KeyName,
|
2015-06-06 12:52:13 +00:00
|
|
|
OUT HKEY* hKey
|
|
|
|
);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
RegTCloseKeyHandle(
|
|
|
|
IN HKEY hKey
|
|
|
|
);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
RegTGetDwordValue(
|
|
|
|
IN HKEY hRootKey,
|
2015-06-09 10:40:26 +00:00
|
|
|
IN PCWSTR RegistryPath,
|
|
|
|
IN PCWSTR Name,
|
2015-06-06 12:52:13 +00:00
|
|
|
IN PULONG pUlong
|
|
|
|
);
|
|
|
|
|
|
|
|
BOOLEAN
|
|
|
|
RegTGetStringValue(
|
|
|
|
IN HKEY hRootKey,
|
2015-06-09 10:40:26 +00:00
|
|
|
IN PCWSTR RegistryPath,
|
|
|
|
IN PCWSTR Name,
|
2015-06-06 12:52:13 +00:00
|
|
|
IN PWCHAR pStr,
|
|
|
|
IN ULONG MaxLen
|
|
|
|
);
|
|
|
|
|
2024-05-18 10:30:54 +00:00
|
|
|
#endif //__MULTIENV_REG_TOOLS__H__
|