ReactOS 0.4.16-dev-306-g647d351
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 ****************************************************************/
12BOOL
14{
15 return ((ULONG_PTR)hKey & 0x2) != 0;
16}
17
19void
21{
22 *hKey = (HKEY)((ULONG_PTR)(*hKey) | 0x2);
23}
24
25LONG
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
38LONG
42 _In_ LPCWSTR lpSubKey,
43 _In_ DWORD ulOptions,
44 _In_ REGSAM samDesired,
45 _In_ PHKEY phkResult);
46
47LONG
51 _In_ LPCWSTR lpSubKey,
52 _In_ REGSAM RegSam,
54
55LONG
60
61LONG
70
71LONG
80
81LONG
85 _In_ DWORD dwIndex,
87 _Inout_ LPDWORD lpcbName,
88 _Reserved_ LPDWORD lpReserved,
89 _Out_opt_ LPWSTR lpClass,
90 _Inout_opt_ LPDWORD lpcbClass,
91 _Out_opt_ PFILETIME lpftLastWriteTime);
92
93LONG
99 _Inout_ PDWORD val_count,
104
105LONG
106WINAPI
108 _In_ HKEY hKey,
109 _Out_writes_to_opt_(*lpcchClass, *lpcchClass + 1) LPWSTR lpClass,
110 _Inout_opt_ LPDWORD lpcchClass,
111 _Reserved_ LPDWORD lpReserved,
112 _Out_opt_ LPDWORD lpcSubKeys,
113 _Out_opt_ LPDWORD lpcbMaxSubKeyLen,
114 _Out_opt_ LPDWORD lpcbMaxClassLen,
115 _Out_opt_ LPDWORD lpcValues,
116 _Out_opt_ LPDWORD lpcbMaxValueNameLen,
117 _Out_opt_ LPDWORD lpcbMaxValueLen,
118 _Out_opt_ LPDWORD lpcbSecurityDescriptor,
119 _Out_opt_ PFILETIME lpftLastWriteTime);
Type
Definition: Type.h:7
HANDLE HKEY
Definition: registry.h:26
LONG WINAPI QueryInfoHKCRKey(_In_ HKEY hKey, _Out_writes_to_opt_(*lpcchClass, *lpcchClass+1) LPWSTR lpClass, _Inout_opt_ LPDWORD lpcchClass, _Reserved_ LPDWORD lpReserved, _Out_opt_ LPDWORD lpcSubKeys, _Out_opt_ LPDWORD lpcbMaxSubKeyLen, _Out_opt_ LPDWORD lpcbMaxClassLen, _Out_opt_ LPDWORD lpcValues, _Out_opt_ LPDWORD lpcbMaxValueNameLen, _Out_opt_ LPDWORD lpcbMaxValueLen, _Out_opt_ LPDWORD lpcbSecurityDescriptor, _Out_opt_ PFILETIME lpftLastWriteTime)
Definition: hkcr.c:1087
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:266
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:873
FORCEINLINE BOOL IsHKCRKey(_In_ HKEY hKey)
Definition: reg.h:13
FORCEINLINE void MakeHKCRKey(_Inout_ HKEY *hKey)
Definition: reg.h:20
LONG WINAPI QueryHKCRValue(_In_ HKEY hKey, _In_ LPCWSTR Name, _In_ LPDWORD Reserved, _In_ LPDWORD Type, _In_ LPBYTE Data, _In_ LPDWORD Count)
Definition: hkcr.c:548
LONG WINAPI DeleteHKCRValue(_In_ HKEY hKey, _In_ PUNICODE_STRING ValueName)
Definition: hkcr.c:504
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:613
LONG WINAPI OpenHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD ulOptions, _In_ REGSAM samDesired, _In_ PHKEY phkResult)
Definition: hkcr.c:370
LONG WINAPI DeleteHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ REGSAM RegSam, _In_ DWORD Reserved)
Definition: hkcr.c:441
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:682
r reserved
Definition: btrfs.c:3006
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
GLuint GLuint GLsizei GLenum type
Definition: gl.h:1545
GLuint GLuint GLsizei count
Definition: gl.h:1545
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLuint index
Definition: glext.h:6031
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4755
#define _Out_writes_to_opt_(s, c)
Definition: no_sal2.h:238
#define _Out_opt_
Definition: no_sal2.h:214
#define _Inout_
Definition: no_sal2.h:162
#define _Inout_opt_
Definition: no_sal2.h:216
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
#define _In_opt_
Definition: no_sal2.h:212
#define _Reserved_
Definition: no_sal2.h:504
int Count
Definition: noreturn.cpp:7
#define CONST
Definition: pedump.c:81
DWORD * PDWORD
Definition: pedump.c:68
long LONG
Definition: pedump.c:60
DWORD dwOptions
Definition: solitaire.cpp:25
unsigned char * LPBYTE
Definition: typedefs.h:53
uint32_t * LPDWORD
Definition: typedefs.h:59
uint32_t ULONG_PTR
Definition: typedefs.h:65
Definition: pdh_main.c:94
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:243
#define FORCEINLINE
Definition: wdftypes.h:67
_In_ LPCSTR lpName
Definition: winbase.h:2814
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
#define WINAPI
Definition: msvc.h:6
ACCESS_MASK REGSAM
Definition: winreg.h:69
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
unsigned char BYTE
Definition: xxhash.c:193