ReactOS  0.4.13-dev-982-g9853eab
winreg.idl
Go to the documentation of this file.
1 /*
2  * Directory Service Setup interface definition
3  */
4 
5 #include <ms-dtyp.idl>
6 
7 typedef [context_handle] HANDLE RPC_HKEY;
8 typedef RPC_HKEY *PRPC_HKEY;
9 
11 
12 typedef struct value_ent
13 {
18 } RVALENT, *PRVALENT;
19 
20 typedef ULONG REGSAM;
21 
23 {
28 
30 {
35 
36 [
37  uuid(338CD001-2244-31F1-AAAA-900038001003),
38  version(1.0),
40  endpoint("ncacn_np:[\\pipe\\winreg]")
41 #ifndef __midl
42  ,explicit_handle
43 #endif
44 ]
45 interface winreg
46 {
47  /* Function 0 */
49  __stdcall
51  [in, unique] PREGISTRY_SERVER_NAME ServerName,
52  [in] REGSAM samDesired,
53  [out] PRPC_HKEY phKey);
54 
55  /* Function 1 */
57  __stdcall
59  [in, unique] PREGISTRY_SERVER_NAME ServerName,
60  [in] REGSAM samDesired,
61  [out] PRPC_HKEY phKey);
62 
63  /* Function 2 */
65  __stdcall
67  [in, unique] PREGISTRY_SERVER_NAME ServerName,
68  [in] REGSAM samDesired,
69  [out] PRPC_HKEY phKey);
70 
71  /* Function 3 */
73  __stdcall
75  [in, unique] PREGISTRY_SERVER_NAME ServerName,
76  [in] REGSAM samDesired,
77  [out] PRPC_HKEY phKey);
78 
79  /* Function 4 */
81  __stdcall
82  OpenUsers(
83  [in, unique] PREGISTRY_SERVER_NAME ServerName,
84  [in] REGSAM samDesired,
85  [out] PRPC_HKEY phKey);
86 
87  /* Function 5 */
89  __stdcall
91  [in, out] PRPC_HKEY hKey);
92 
93  /* Function 6 */
95  __stdcall
97  [in] RPC_HKEY hKey,
98  [in] PRPC_UNICODE_STRING lpSubKey,
99  [in] PRPC_UNICODE_STRING lpClass,
100  [in] DWORD dwOptions,
101  [in] REGSAM samDesired,
102  [in, unique] PRPC_SECURITY_ATTRIBUTES lpSecurityAttributes,
103  [out] PRPC_HKEY phkResult,
104  [in, out, unique] LPDWORD lpdwDisposition);
105 
106  /* Function 7 */
108  __stdcall
110  [in] RPC_HKEY hKey,
111  [in] PRPC_UNICODE_STRING lpSubKey);
112 
113  /* Function 8 */
115  __stdcall
117  [in] RPC_HKEY hKey,
118  [in] PRPC_UNICODE_STRING lpValueName);
119 
120  /* Function 9 */
122  __stdcall
124  [in] RPC_HKEY hKey,
125  [in] DWORD dwIndex,
126  [in] PRPC_UNICODE_STRING lpNameIn,
127  [out] PRPC_UNICODE_STRING lpNameOut,
128  [in, unique] PRPC_UNICODE_STRING lpClassIn,
129  [out] PRPC_UNICODE_STRING *lplpClassOut,
130  [in, out, unique] PFILETIME lpftLastWriteTime);
131 
132  /* Function 10 */
134  __stdcall
136  [in] RPC_HKEY hKey,
137  [in] DWORD dwIndex,
138  [in] PRPC_UNICODE_STRING lpValueNameIn,
139  [out] PRPC_UNICODE_STRING lpValueNameOut,
140  [in, out, unique] LPDWORD lpType,
141  [in, out, unique, size_is(lpcbData ? *lpcbData : 0), length_is(lpcbLen ? *lpcbLen : 0)] LPBYTE lpData, /* range(0, 0x4000000) */
142  [in, out, unique] LPDWORD lpcbData,
143  [in, out, unique] LPDWORD lpcbLen);
144 
145  /* Function 11 */
147  __stdcall
149  [in] RPC_HKEY hKey);
150 
151  /* Function 12 */
153  __stdcall
155  [in] RPC_HKEY hKey,
157  [in] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptorIn,
158  [out] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptorOut);
159 
160  /* Function 13 */
162  __stdcall
164  [in] RPC_HKEY hKey,
165  [in] PRPC_UNICODE_STRING lpSubKey,
166  [in] PRPC_UNICODE_STRING lpFile);
167 
168  /* Function 14 - Not used on wire */
169  void
170  __stdcall
172 
173  /* Function 15 */
175  __stdcall
177  [in] RPC_HKEY hKey,
178  [in] PRPC_UNICODE_STRING lpSubKey,
179  [in] DWORD dwOptions,
180  [in] REGSAM samDesired,
181  [out] PRPC_HKEY phkResult);
182 
183  /* Function 16 */
185  __stdcall
187  [in] RPC_HKEY hKey,
188  [in] PRPC_UNICODE_STRING lpClassIn,
189  [out] PRPC_UNICODE_STRING lpClassOut,
190  [out] LPDWORD lpcSubKeys,
191  [out] LPDWORD lpcbMaxSubKeyLen,
192  [out] LPDWORD lpcbMaxClassLen,
193  [out] LPDWORD lpcValues,
194  [out] LPDWORD lpcbMaxValueNameLen,
195  [out] LPDWORD lpcbMaxValueLen,
196  [out] LPDWORD lpcbSecurityDescriptor,
197  [out] PFILETIME lpftLastWriteTime);
198 
199  /* Function 17 */
201  __stdcall
203  [in] RPC_HKEY hKey,
204  [in] PRPC_UNICODE_STRING lpValueName,
205  [in, out, unique] LPDWORD lpType,
206  [in, out, unique, size_is(lpcbData ? *lpcbData : 0), length_is(lpcbLen ? *lpcbLen : 0)] LPBYTE lpData, /* range(0, 0x4000000) */
207  [in, out, unique] LPDWORD lpcbData,
208  [in, out, unique] LPDWORD lpcbLen);
209 
210  /* Function 18 */
212  __stdcall
214  [in] RPC_HKEY hKey,
215  [in] PRPC_UNICODE_STRING lpSubKey,
216  [in] PRPC_UNICODE_STRING lpNewFile,
217  [in] PRPC_UNICODE_STRING lpOldFile);
218 
219  /* Function 19 */
221  __stdcall
223  [in] RPC_HKEY hKey,
224  [in] PRPC_UNICODE_STRING lpFile,
225  [in] DWORD Flags);
226 
227  /* Function 20 */
229  __stdcall
231  [in] RPC_HKEY hKey,
232  [in] PRPC_UNICODE_STRING lpFile,
233  [in, unique] PRPC_SECURITY_ATTRIBUTES pSecurityAttributes);
234 
235  /* Function 21 */
237  __stdcall
239  [in] RPC_HKEY hKey,
241  [in] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptor);
242 
243  /* Function 22 */
245  __stdcall
247  [in] RPC_HKEY hKey,
248  [in] PRPC_UNICODE_STRING lpValueName,
249  [in] DWORD dwType,
250  [in, size_is(cbData)] LPBYTE lpData,
251  [in] DWORD cbData);
252 
253  /* Function 23 */
255  __stdcall
257  [in] RPC_HKEY hKey,
258  [in] PRPC_UNICODE_STRING lpSubKey);
259 
260  /* Function 24 */
261  ULONG
262  __stdcall
264  [in, unique] PREGISTRY_SERVER_NAME ServerName,
265  [in, unique] PRPC_UNICODE_STRING lpMessage,
266  [in] ULONG dwTimeout,
267  [in] BOOLEAN bForceAppsClosed,
268  [in] BOOLEAN bRebootAfterShutdown);
269 
270  /* Function 25 */
271  ULONG
272  __stdcall
274  [in, unique] PREGISTRY_SERVER_NAME ServerName);
275 
276  /* Function 26 */
278  __stdcall
280  [in] RPC_HKEY hKey,
281  [out] LPDWORD lpdwVersion);
282 
283  /* Function 27 */
285  __stdcall
287  [in, unique] PREGISTRY_SERVER_NAME ServerName,
288  [in] REGSAM samDesired,
289  [out] PRPC_HKEY phKey);
290 
291  /* Function 28 - Not used on wire */
292  void
293  __stdcall
294  OpenDynData(void);
295 
296  /* Function 29 */
298  __stdcall
300  [in] RPC_HKEY hKey,
301  [in, size_is(num_vals), length_is(num_vals)] PRVALENT val_listIn,
302  [out, size_is(num_vals), length_is(num_vals)] PRVALENT val_listOut,
303  [in] DWORD num_vals,
304  [in, out, unique, size_is(*ldwTotsize), length_is(*ldwTotsize)] char *lpvalueBuf,
305  [in, out, ref] LPDWORD ldwTotsize);
306 
307  /* Function 30 */
308  ULONG
309  __stdcall
311  [in, unique] PREGISTRY_SERVER_NAME ServerName,
312  [in, unique] PRPC_UNICODE_STRING lpMessage,
313  [in] ULONG dwTimeout,
314  [in] BOOLEAN bForceAppsClosed,
315  [in] BOOLEAN bRebootAfterShutdown,
316  [in] ULONG dwReason);
317 
318  /* Function 31 */
320  __stdcall
322  [in] RPC_HKEY hKey,
323  [in] PRPC_UNICODE_STRING lpFile,
324  [in, unique] PRPC_SECURITY_ATTRIBUTES pSecurityAttributes,
325  [in] DWORD Flags);
326 
327  /* Function 32 */
329  __stdcall
331  [in, unique] PREGISTRY_SERVER_NAME ServerName,
332  [in] REGSAM samDesired,
333  [out] PRPC_HKEY phKey);
334 
335  /* Function 33 */
337  __stdcall
339  [in, unique] PREGISTRY_SERVER_NAME ServerName,
340  [in] REGSAM samDesired,
341  [out] PRPC_HKEY phKey);
342 
343  /* Function 34 */
345  __stdcall
347  [in] RPC_HKEY hKey,
348  [in, size_is(num_vals), length_is(num_vals)] PRVALENT val_listIn,
349  [out, size_is(num_vals), length_is(num_vals)] PRVALENT val_listOut,
350  [in] DWORD num_vals,
351  [in, out, unique, size_is(*ldwTotsize), length_is(*ldwTotsize)] char *lpvalueBuf,
352  [in] LPDWORD ldwTotsize,
353  [out] LPDWORD ldwRequiredSize);
354 
355  /* Function 35 */
357  __stdcall
359  [in] RPC_HKEY hKey,
360  [in] PRPC_UNICODE_STRING lpSubKey,
361  [in] REGSAM AccessMask,
362  [in] DWORD Reserved);
363 }
DWORD dwOptions
Definition: solitaire.cpp:23
void __stdcall BaseRegNotifyChangeKeyValue(void)
error_status_t __stdcall OpenPerformanceNlsText([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
DWORD ve_valuelen
Definition: winreg.idl:15
error_status_t __stdcall BaseRegUnLoadKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey)
error_status_t __stdcall BaseRegLoadKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey, [in] PRPC_UNICODE_STRING lpFile)
namespace GUID const ADDRINFOEXW ADDRINFOEXW struct timeval OVERLAPPED LPLOOKUPSERVICE_COMPLETION_ROUTINE HANDLE * handle
Definition: sock.c:82
error_status_t __stdcall BaseRegRestoreKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpFile, [in] DWORD Flags)
error_status_t __stdcall BaseRegEnumKey([in] RPC_HKEY hKey, [in] DWORD dwIndex, [in] PRPC_UNICODE_STRING lpNameIn, [out] PRPC_UNICODE_STRING lpNameOut, [in, unique] PRPC_UNICODE_STRING lpClassIn, [out] PRPC_UNICODE_STRING *lplpClassOut, [in, out, unique] PFILETIME lpftLastWriteTime)
struct _RPC_SECURITY_DESCRIPTOR * PRPC_SECURITY_DESCRIPTOR
error_status_t __stdcall OpenPerformanceText([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
error_status_t __stdcall BaseRegQueryValue([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpValueName, [in, out, unique] LPDWORD lpType, [in, out, unique, size_is(lpcbData ? *lpcbData :0), length_is(lpcbLen ? *lpcbLen :0)] LPBYTE lpData, [in, out, unique] LPDWORD lpcbData, [in, out, unique] LPDWORD lpcbLen)
error_status_t __stdcall BaseRegReplaceKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey, [in] PRPC_UNICODE_STRING lpNewFile, [in] PRPC_UNICODE_STRING lpOldFile)
RPC_SECURITY_DESCRIPTOR RpcSecurityDescriptor
Definition: winreg.idl:32
DWORD ve_type
Definition: winreg.idl:17
error_status_t __stdcall OpenCurrentConfig([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
uint16_t * PWCHAR
Definition: typedefs.h:54
error_status_t __stdcall BaseRegEnumValue([in] RPC_HKEY hKey, [in] DWORD dwIndex, [in] PRPC_UNICODE_STRING lpValueNameIn, [out] PRPC_UNICODE_STRING lpValueNameOut, [in, out, unique] LPDWORD lpType, [in, out, unique, size_is(lpcbData ? *lpcbData :0), length_is(lpcbLen ? *lpcbLen :0)] LPBYTE lpData, [in, out, unique] LPDWORD lpcbData, [in, out, unique] LPDWORD lpcbLen)
Definition: send.c:47
error_status_t __stdcall BaseRegDeleteKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey)
struct value_ent * PRVALENT
struct value_ent RVALENT
DWORD dwReason
Definition: misc.cpp:154
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
unsigned char * LPBYTE
Definition: typedefs.h:52
DWORD SECURITY_INFORMATION
Definition: ms-dtyp.idl:311
PWCHAR PREGISTRY_SERVER_NAME
Definition: winreg.idl:10
error_status_t __stdcall BaseRegOpenKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey, [in] DWORD dwOptions, [in] REGSAM samDesired, [out] PRPC_HKEY phkResult)
PRPC_UNICODE_STRING ve_valuename
Definition: winreg.idl:14
error_status_t __stdcall BaseRegGetVersion([in] RPC_HKEY hKey, [out] LPDWORD lpdwVersion)
ULONG REGSAM
Definition: winreg.idl:20
void __stdcall OpenDynData(void)
unsigned char BOOLEAN
ULONG __stdcall BaseAbortSystemShutdown([in, unique] PREGISTRY_SERVER_NAME ServerName)
static const WCHAR version[]
Definition: asmname.c:64
error_status_t __stdcall BaseRegQueryMultipleValues([in] RPC_HKEY hKey, [in, size_is(num_vals), length_is(num_vals)] PRVALENT val_listIn, [out, size_is(num_vals), length_is(num_vals)] PRVALENT val_listOut, [in] DWORD num_vals, [in, out, unique, size_is(*ldwTotsize), length_is(*ldwTotsize)] char *lpvalueBuf, [in, out, ref] LPDWORD ldwTotsize)
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1339
ULONG __stdcall BaseInitiateSystemShutdown([in, unique] PREGISTRY_SERVER_NAME ServerName, [in, unique] PRPC_UNICODE_STRING lpMessage, [in] ULONG dwTimeout, [in] BOOLEAN bForceAppsClosed, [in] BOOLEAN bRebootAfterShutdown)
_Reserved_ PVOID Reserved
Definition: winddi.h:3974
error_status_t __stdcall BaseRegSetValue([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpValueName, [in] DWORD dwType, [in, size_is(cbData)] LPBYTE lpData, [in] DWORD cbData)
error_status_t __stdcall OpenUsers([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
struct _RPC_SECURITY_DESCRIPTOR RPC_SECURITY_DESCRIPTOR
RPC_HKEY * PRPC_HKEY
Definition: winreg.idl:8
error_status_t __stdcall OpenPerformanceData([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
error_status_t __stdcall BaseRegQueryMultipleValues2([in] RPC_HKEY hKey, [in, size_is(num_vals), length_is(num_vals)] PRVALENT val_listIn, [out, size_is(num_vals), length_is(num_vals)] PRVALENT val_listOut, [in] DWORD num_vals, [in, out, unique, size_is(*ldwTotsize), length_is(*ldwTotsize)] char *lpvalueBuf, [in] LPDWORD ldwTotsize, [out] LPDWORD ldwRequiredSize)
ULONG __stdcall BaseInitiateSystemShutdownEx([in, unique] PREGISTRY_SERVER_NAME ServerName, [in, unique] PRPC_UNICODE_STRING lpMessage, [in] ULONG dwTimeout, [in] BOOLEAN bForceAppsClosed, [in] BOOLEAN bRebootAfterShutdown, [in] ULONG dwReason)
struct _RPC_SECURITY_ATTRIBUTES RPC_SECURITY_ATTRIBUTES
error_status_t __stdcall OpenCurrentUser([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
_In_ ACCESS_MASK AccessMask
Definition: exfuncs.h:186
struct endpoint endpoint
Definition: nis.h:15
static FILE * out
Definition: regtests2xml.c:44
unsigned long DWORD
Definition: ntddk_ex.h:95
#define __stdcall
Definition: typedefs.h:25
error_status_t __stdcall BaseRegFlushKey([in] RPC_HKEY hKey)
HANDLE RPC_HKEY
Definition: winreg.idl:7
error_status_t __stdcall BaseRegSetKeySecurity([in] RPC_HKEY hKey, [in] SECURITY_INFORMATION SecurityInformation, [in] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptor)
error_status_t __stdcall OpenLocalMachine([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
error_status_t __stdcall BaseRegSaveKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpFile, [in, unique] PRPC_SECURITY_ATTRIBUTES pSecurityAttributes)
_In_ void _In_ PCCERT_CONTEXT _In_opt_ LPFILETIME _In_ DWORD _In_ DWORD dwTimeout
Definition: wincrypt.h:6081
error_status_t __stdcall OpenClassesRoot([in, unique] PREGISTRY_SERVER_NAME ServerName, [in] REGSAM samDesired, [out] PRPC_HKEY phKey)
error_status_t __stdcall BaseRegDeleteValue([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpValueName)
error_status_t __stdcall BaseRegSaveKeyEx([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpFile, [in, unique] PRPC_SECURITY_ATTRIBUTES pSecurityAttributes, [in] DWORD Flags)
error_status_t __stdcall BaseRegGetKeySecurity([in] RPC_HKEY hKey, [in] SECURITY_INFORMATION SecurityInformation, [in] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptorIn, [out] PRPC_SECURITY_DESCRIPTOR pRpcSecurityDescriptorOut)
LPDWORD ve_valueptr
Definition: winreg.idl:16
GLuint in
Definition: glext.h:9616
static unsigned char pointer_default
Definition: parser.tab.c:114
struct _RPC_SECURITY_ATTRIBUTES * PRPC_SECURITY_ATTRIBUTES
ACCESS_MASK REGSAM
Definition: winreg.h:69
unsigned long error_status_t
Definition: basetyps.h:83
uint32_t * LPDWORD
Definition: typedefs.h:57
unsigned int ULONG
Definition: retypes.h:1
error_status_t __stdcall BaseRegQueryInfoKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpClassIn, [out] PRPC_UNICODE_STRING lpClassOut, [out] LPDWORD lpcSubKeys, [out] LPDWORD lpcbMaxSubKeyLen, [out] LPDWORD lpcbMaxClassLen, [out] LPDWORD lpcValues, [out] LPDWORD lpcbMaxValueNameLen, [out] LPDWORD lpcbMaxValueLen, [out] LPDWORD lpcbSecurityDescriptor, [out] PFILETIME lpftLastWriteTime)
#define F1(x, y, z)
Definition: md5.c:160
error_status_t __stdcall BaseRegCreateKey([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey, [in] PRPC_UNICODE_STRING lpClass, [in] DWORD dwOptions, [in] REGSAM samDesired, [in, unique] PRPC_SECURITY_ATTRIBUTES lpSecurityAttributes, [out] PRPC_HKEY phkResult, [in, out, unique] LPDWORD lpdwDisposition)
error_status_t __stdcall BaseRegDeleteKeyEx([in] RPC_HKEY hKey, [in] PRPC_UNICODE_STRING lpSubKey, [in] REGSAM AccessMask, [in] DWORD Reserved)
BYTE * PBYTE
Definition: pedump.c:66
error_status_t __stdcall BaseRegCloseKey([in, out] PRPC_HKEY hKey)