ReactOS 0.4.15-dev-7788-g1ad9096
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
64
65LONG
74
75LONG
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
87LONG
93 _Inout_ PDWORD val_count,
98
99LONG
100WINAPI
102 _In_ HKEY hKey,
103 _Out_writes_to_opt_(*lpcchClass, *lpcchClass + 1) LPWSTR lpClass,
104 _Inout_opt_ LPDWORD lpcchClass,
105 _Reserved_ LPDWORD lpReserved,
106 _Out_opt_ LPDWORD lpcSubKeys,
107 _Out_opt_ LPDWORD lpcbMaxSubKeyLen,
108 _Out_opt_ LPDWORD lpcbMaxClassLen,
109 _Out_opt_ LPDWORD lpcValues,
110 _Out_opt_ LPDWORD lpcbMaxValueNameLen,
111 _Out_opt_ LPDWORD lpcbMaxValueLen,
112 _Out_opt_ LPDWORD lpcbSecurityDescriptor,
113 _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:1021
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:244
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
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:482
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:547
LONG WINAPI OpenHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ DWORD ulOptions, _In_ REGSAM samDesired, _In_ PHKEY phkResult)
Definition: hkcr.c:348
LONG WINAPI DeleteHKCRKey(_In_ HKEY hKey, _In_ LPCWSTR lpSubKey, _In_ REGSAM RegSam, _In_ DWORD Reserved)
Definition: hkcr.c:419
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:616
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
#define _Out_opt_
Definition: ms_sal.h:346
#define _Inout_
Definition: ms_sal.h:378
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _Out_writes_to_opt_(size, count)
Definition: ms_sal.h:356
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _Reserved_
Definition: ms_sal.h:295
_In_ NDIS_STATUS _In_ ULONG _In_ USHORT _In_opt_ PVOID _In_ ULONG DataSize
Definition: ndis.h:4755
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
#define FORCEINLINE
Definition: wdftypes.h:67
_In_ LPCSTR lpName
Definition: winbase.h:2789
_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