ReactOS 0.4.15-dev-8236-g99f0937
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
7extern "C" {
8#endif
9
11typedef 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
39
41typedef 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
73
75
76LONG
78 IN LPCWSTR lpSubKey OPTIONAL,
79 IN LPCWSTR lpValue OPTIONAL,
80 OUT LPDWORD lpData OPTIONAL);
81
82LONG
84 IN LPCWSTR lpSubKey OPTIONAL,
85 IN LPCWSTR lpValue OPTIONAL,
86 IN BOOL bCreateKeyIfDoesntExist,
88
89#ifdef __cplusplus
90} // extern "C"
91#endif
92
93#endif // __REGUTILS_H__
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
FxAutoRegKey hKey
_In_ GUID _In_ PVOID ValueData
Definition: hubbusif.h:312
static HANDLE ULONG_PTR dwData
Definition: file.c:35
_Must_inspect_result_ _Out_ PNDIS_STATUS _In_ NDIS_HANDLE _In_ PNDIS_STRING SubKeyName
Definition: ndis.h:4725
_In_ PCWSTR _Inout_ _At_ QueryTable EntryContext
Definition: rtlfuncs.h:4207
_In_ PCWSTR _Inout_ _At_ QueryTable _Pre_unknown_ PRTL_QUERY_REGISTRY_TABLE QueryTable
Definition: rtlfuncs.h:4208
#define LRESULT
Definition: ole.h:14
long LONG
Definition: pedump.c:60
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
LRESULT RegQueryRegistryKeys(IN HKEY hRootKey, IN LPCWSTR KeyName, IN PQUERY_REGISTRY_KEYS_TABLE QueryTable, IN PVOID Context)
Definition: regutils.c:6
struct __tagQUERY_REGISTRY_KEYS_TABLE QUERY_REGISTRY_KEYS_TABLE
struct __tagQUERY_REGISTRY_VALUES_TABLE * PQUERY_REGISTRY_VALUES_TABLE
LRESULT RegQueryRegistryValues(IN HKEY hRootKey, IN LPCWSTR KeyName, IN PQUERY_REGISTRY_VALUES_TABLE QueryTable, IN PVOID Context)
Definition: regutils.c:51
LONG RegSetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, IN BOOL bCreateKeyIfDoesntExist, IN DWORD dwData)
Definition: regutils.c:162
struct __tagQUERY_REGISTRY_VALUES_TABLE QUERY_REGISTRY_VALUES_TABLE
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
struct __tagQUERY_REGISTRY_KEYS_TABLE * PQUERY_REGISTRY_KEYS_TABLE
LONG RegGetDWORDValue(IN HKEY hKey, IN LPCWSTR lpSubKey OPTIONAL, IN LPCWSTR lpValue OPTIONAL, OUT LPDWORD lpData OPTIONAL)
Definition: regutils.c:95
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
PQUERY_REGISTRY_KEYS_ROUTINE QueryRoutine
Definition: regutils.h:29
PQUERY_REGISTRY_VALUES_ROUTINE QueryRoutine
Definition: regutils.h:63
unsigned char * LPBYTE
Definition: typedefs.h:53
uint32_t * LPDWORD
Definition: typedefs.h:59
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
_Must_inspect_result_ _In_ WDFDEVICE _In_ PCUNICODE_STRING KeyName
Definition: wdfdevice.h:2699
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG _Out_opt_ PULONG _Out_opt_ PULONG ValueType
Definition: wdfregistry.h:282
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING ValueName
Definition: wdfregistry.h:243
_Must_inspect_result_ _In_ WDFKEY _In_ PCUNICODE_STRING _In_ ULONG ValueLength
Definition: wdfregistry.h:275
LONG_PTR LRESULT
Definition: windef.h:209
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185