8228be4e84690e0a85baa49d784f3f0837238c1b
[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 }