ReactOS  0.4.14-dev-1034-g1e60116
reg.h
Go to the documentation of this file.
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 ****************************************************************/
12 BOOL
14 {
15  return ((ULONG_PTR)hKey & 0x2) != 0;
16 }
17 
19 void
21 {
22  *hKey = (HKEY)((ULONG_PTR)(*hKey) | 0x2);
23 }
24 
25 LONG
26 WINAPI
28  _In_ HKEY hKey,
29  _In_ LPCWSTR lpSubKey,
31  _In_opt_ LPWSTR lpClass,
33  _In_ REGSAM samDesired,
34  _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
35  _Out_ PHKEY phkResult,
36  _Out_opt_ LPDWORD lpdwDisposition);
37 
38 LONG
39 WINAPI
41  _In_ HKEY hKey,
42  _In_ LPCWSTR lpSubKey,
43  _In_ DWORD ulOptions,
44  _In_ REGSAM samDesired,
45  _In_ PHKEY phkResult);
46 
47 LONG
48 WINAPI
50  _In_ HKEY hKey,
51  _In_ LPCWSTR lpSubKey,
52  _In_ REGSAM RegSam,
54 
55 LONG
56 WINAPI
58  _In_ HKEY hKey,
64 
65 LONG
66 WINAPI
68  _In_ HKEY hKey,
71  _In_ DWORD Type,
74 
75 LONG
76 WINAPI
78  _In_ HKEY hKey,
79  _In_ DWORD dwIndex,
81  _Inout_ LPDWORD lpcbName,
82  _Reserved_ LPDWORD lpReserved,
83  _Out_opt_ LPWSTR lpClass,
84  _Inout_opt_ LPDWORD lpcbClass,
85  _Out_opt_ PFILETIME lpftLastWriteTime);
86 
87 LONG
88 WINAPI
90  _In_ HKEY hKey,
93  _Inout_ PDWORD val_count,
98 
DWORD dwOptions
Definition: solitaire.cpp:23
LONG WINAPI EnumHKCRKey(_In_ HKEY hKey, _In_ DWORD dwIndex, _Out_ LPWSTR lpName, _Inout_ LPDWORD lpcbName, _Reserved_ LPDWORD lpReserved, _Out_opt_ LPWSTR lpClass, _Inout_opt_ LPDWORD lpcbClass, _Out_opt_ PFILETIME lpftLastWriteTime)
Definition: hkcr.c:592
Type
Definition: Type.h:6
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
FORCEINLINE void MakeHKCRKey(_Inout_ HKEY *hKey)
Definition: reg.h:20
LONG WINAPI CreateHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD Reserved, _In_opt_ LPWSTR lpClass, _In_ DWORD dwOptions, _In_ REGSAM samDesired, _In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes, _Out_ PHKEY phkResult, _Out_opt_ LPDWORD lpdwDisposition)
Definition: hkcr.c:220
GLuint GLuint GLsizei count
Definition: gl.h:1545
_In_ LPCSTR lpName
Definition: winbase.h:2746
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
#define _In_opt_
Definition: no_sal2.h:213
uint32_t ULONG_PTR
Definition: typedefs.h:64
LONG WINAPI OpenHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD ulOptions, _In_ REGSAM samDesired, _In_ PHKEY phkResult)
Definition: hkcr.c:324
LONG WINAPI DeleteHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ REGSAM RegSam, _In_ DWORD Reserved)
Definition: hkcr.c:395
unsigned char * LPBYTE
Definition: typedefs.h:53
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
r reserved
Definition: btrfs.c:2865
#define FORCEINLINE
Definition: ntbasedef.h:221
#define _Out_
Definition: no_sal2.h:323
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
GLuint index
Definition: glext.h:6031
#define _Out_opt_
Definition: no_sal2.h:339
LONG WINAPI QueryHKCRValue(_In_ HKEY hKey, _In_ LPCWSTR Name, _In_ LPDWORD Reserved, _In_ LPDWORD Type, _In_ LPBYTE Data, _In_ LPDWORD Count)
Definition: hkcr.c:458
FORCEINLINE BOOL IsHKCRKey(_In_ HKEY hKey)
Definition: reg.h:13
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
#define _Inout_
Definition: no_sal2.h:244
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
#define _Reserved_
Definition: no_sal2.h:573
unsigned char BYTE
Definition: mem.h:68
#define _In_
Definition: no_sal2.h:204
ACCESS_MASK REGSAM
Definition: winreg.h:69
DWORD * PDWORD
Definition: pedump.c:68
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG x2
Definition: winddi.h:3706
LONG WINAPI SetHKCRValue(_In_ HKEY hKey, _In_ LPCWSTR Name, _In_ DWORD Reserved, _In_ DWORD Type, _In_ CONST BYTE *Data, _In_ DWORD DataSize)
Definition: hkcr.c:523
uint32_t * LPDWORD
Definition: typedefs.h:58
LONG WINAPI EnumHKCRValue(_In_ HKEY hKey, _In_ DWORD index, _Out_ LPWSTR value, _Inout_ PDWORD val_count, _Reserved_ PDWORD reserved, _Out_opt_ PDWORD type, _Out_opt_ LPBYTE data, _Inout_opt_ PDWORD count)
Definition: hkcr.c:807
HANDLE HKEY
Definition: registry.h:24
WCHAR * LPWSTR
Definition: xmlstorage.h:184
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4751
#define CONST
Definition: pedump.c:81
#define _Inout_opt_
Definition: no_sal2.h:258