1 ////////////////////////////////////////////////////////////////////
2 // Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
3 // All rights reserved
4 // This file was released under the GPLv2 on June 2015.
5 ////////////////////////////////////////////////////////////////////
6 
7 #ifndef __MULTIENV_REG_TOOLS__H__
8 #define __MULTIENV_REG_TOOLS__H__
9 
10 #include "check_env.h"
11 
12 #ifndef WIN_32_MODE
13 #define HKEY  HANDLE
14 #endif //WIN_32_MODE
15 
16 NTSTATUS
17 RegTGetKeyHandle(
18     IN HKEY hRootKey,
19     IN PCWSTR KeyName,
20     OUT HKEY* hKey
21     );
22 
23 VOID
24 RegTCloseKeyHandle(
25     IN HKEY hKey
26     );
27 
28 BOOLEAN
29 RegTGetDwordValue(
30     IN HKEY hRootKey,
31     IN PCWSTR RegistryPath,
32     IN PCWSTR Name,
33     IN PULONG pUlong
34     );
35 
36 BOOLEAN
37 RegTGetStringValue(
38     IN HKEY hRootKey,
39     IN PCWSTR RegistryPath,
40     IN PCWSTR Name,
41     IN PWCHAR pStr,
42     IN ULONG MaxLen
43     );
44 
45 #endif //__MULTIENV_REG_TOOLS__H__