ReactOS  0.4.12-dev-43-g63b00d8
regutils.h
Go to the documentation of this file.
1 #ifndef __REGUTILS_H__
2 #define __REGUTILS_H__
3 
4 #pragma once
5 
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9 
11 typedef LRESULT
15  IN HKEY hOpenedSubKey,
18 
19 #define QUERY_REGISTRY_KEYS_ROUTINE(fnName) \
20  LRESULT (fnName)(IN HKEY hRootKey, \
21  IN LPCWSTR KeyName, \
22  IN LPWSTR SubKeyName, \
23  IN HKEY hOpenedSubKey, \
24  IN PVOID Context, \
25  IN PVOID EntryContext)
26 
28 {
31  // Other fields ?
33 
34 LRESULT
36  IN LPCWSTR KeyName,
37  IN PQUERY_REGISTRY_KEYS_TABLE QueryTable,
38  IN PVOID Context);
39 
41 typedef LRESULT
50 
51 #define QUERY_REGISTRY_VALUES_ROUTINE(fnName) \
52  LRESULT (fnName)(IN HKEY hRootKey, \
53  IN LPCWSTR KeyName, \
54  IN LPWSTR ValueName, \
55  IN DWORD ValueType, \
56  IN LPBYTE ValueData, \
57  IN DWORD ValueLength, \
58  IN PVOID Context, \
59  IN PVOID EntryContext)
60 
62 {
65  // Other fields ?
67 
68 LRESULT
70  IN LPCWSTR KeyName,
71  IN PQUERY_REGISTRY_VALUES_TABLE QueryTable,
72  IN PVOID Context);
73 
75 
76 LONG
78  IN LPCWSTR lpSubKey OPTIONAL,
79  IN LPCWSTR lpValue OPTIONAL,
80  OUT LPDWORD lpData OPTIONAL);
81 
82 LONG
84  IN LPCWSTR lpSubKey OPTIONAL,
85  IN LPCWSTR lpValue OPTIONAL,
86  IN BOOL bCreateKeyIfDoesntExist,
87  IN DWORD dwData);
88 
89 #ifdef __cplusplus
90 } // extern "C"
91 #endif
92 
93 #endif // __REGUTILS_H__
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ ULONG _Out_ PNDIS_STRING KeyName
Definition: ndis.h:4693
_In_ PCWSTR _Inout_ _At_ QueryTable _Pre_unknown_ PRTL_QUERY_REGISTRY_TABLE QueryTable
Definition: rtlfuncs.h:3988
#define IN
Definition: typedefs.h:38
LONG RegGetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, OUT LPDWORD lpData OPTIONAL)
Definition: regutils.c:95
#define LRESULT
Definition: msvc.h:49
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ PNDIS_STRING SubKeyName
Definition: ndis.h:4705
struct __tagQUERY_REGISTRY_VALUES_TABLE * PQUERY_REGISTRY_VALUES_TABLE
struct __tagQUERY_REGISTRY_VALUES_TABLE QUERY_REGISTRY_VALUES_TABLE
_In_ PCWSTR _In_z_ PCWSTR _In_ ULONG ValueType
Definition: rtlfuncs.h:4000
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
static HANDLE ULONG_PTR dwData
Definition: file.c:35
struct __tagQUERY_REGISTRY_KEYS_TABLE * PQUERY_REGISTRY_KEYS_TABLE
_In_ PUNICODE_STRING ValueName
Definition: cmfuncs.h:264
unsigned char * LPBYTE
Definition: typedefs.h:52
long LONG
Definition: pedump.c:60
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:3988
unsigned int BOOL
Definition: ntddk_ex.h:94
LRESULT RegQueryRegistryValues(IN HKEY hRootKey, IN LPCWSTR KeyName, IN PQUERY_REGISTRY_VALUES_TABLE QueryTable, IN PVOID Context)
Definition: regutils.c:51
PQUERY_REGISTRY_VALUES_ROUTINE QueryRoutine
Definition: regutils.h:63
LRESULT(* PQUERY_REGISTRY_VALUES_ROUTINE)(IN HKEY hRootKey, IN LPCWSTR KeyName, IN LPWSTR ValueName, IN DWORD ValueType, IN LPBYTE ValueData, IN DWORD ValueLength, IN PVOID Context, IN PVOID EntryContext)
Definition: regutils.h:42
LONG RegSetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, IN BOOL bCreateKeyIfDoesntExist, IN DWORD dwData)
Definition: regutils.c:162
_In_ GUID _In_ PVOID ValueData
Definition: hubbusif.h:311
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_ GUID _In_ PVOID _In_ ULONG ValueLength
Definition: hubbusif.h:311
LRESULT RegQueryRegistryKeys(IN HKEY hRootKey, IN LPCWSTR KeyName, IN PQUERY_REGISTRY_KEYS_TABLE QueryTable, IN PVOID Context)
Definition: regutils.c:6
LRESULT(* PQUERY_REGISTRY_KEYS_ROUTINE)(IN HKEY hRootKey, IN LPCWSTR KeyName, IN LPWSTR SubKeyName, IN HKEY hOpenedSubKey, IN PVOID Context, IN PVOID EntryContext)
Definition: regutils.h:12
PQUERY_REGISTRY_KEYS_ROUTINE QueryRoutine
Definition: regutils.h:29
struct __tagQUERY_REGISTRY_KEYS_TABLE QUERY_REGISTRY_KEYS_TABLE
#define OUT
Definition: typedefs.h:39
uint32_t * LPDWORD
Definition: typedefs.h:57
struct tagContext Context
Definition: acpixf.h:1027
WCHAR * LPWSTR
Definition: xmlstorage.h:184
LONG_PTR LRESULT
Definition: windef.h:209
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68