45e8113aa243d208df3716ef033ffe523ce32f6c
[reactos.git] / reactos / dll / win32 / advapi32 / reg / reg.h
1 /*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/advapi32/reg/reg.c
5 * PURPOSE: Registry functions
6 */
7
8 #pragma once
9
10 /* FUNCTIONS ****************************************************************/
11 FORCEINLINE
12 BOOL
13 IsHKCRKey(_In_ HKEY hKey)
14 {
15 return ((ULONG_PTR)hKey & 0x2) != 0;
16 }
17
18 FORCEINLINE
19 void
20 MakeHKCRKey(_Inout_ HKEY* hKey)
21 {
22 *hKey = (HKEY)((ULONG_PTR)(*hKey) | 0x2);
23 }
24
25 LONG
26 WINAPI
27 OpenHKCRKey(
28 _In_ HKEY hKey,
29 _In_ LPCWSTR lpSubKey,
30 _In_ DWORD ulOptions,
31 _In_ REGSAM samDesired,
32 _In_ PHKEY phkResult);