ReactOS  0.4.15-dev-3295-gaa8fc87
lmrepl.h
Go to the documentation of this file.
1 /*
2  * lmrepl.h
3  *
4  * This file is part of the ReactOS PSDK package.
5  *
6  * THIS SOFTWARE IS NOT COPYRIGHTED
7  *
8  * This source code is offered for use in the public domain. You may
9  * use, modify or distribute it freely.
10  *
11  * This code is distributed in the hope that it will be useful but
12  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
13  * DISCLAIMED. This includes but is not limited to warranties of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15  *
16  */
17 
18 #pragma once
19 #define _LMREPL_
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #define REPL_ROLE_EXPORT 1
26 #define REPL_ROLE_IMPORT 2
27 #define REPL_ROLE_BOTH 3
28 
29 #define REPL_INTERVAL_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+0)
30 #define REPL_PULSE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+1)
31 #define REPL_GUARDTIME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+2)
32 #define REPL_RANDOM_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+3)
33 
34 #define REPL_UNLOCK_NOFORCE 0
35 #define REPL_UNLOCK_FORCE 1
36 
37 #define REPL_STATE_OK 0
38 #define REPL_STATE_NO_MASTER 1
39 #define REPL_STATE_NO_SYNC 2
40 #define REPL_STATE_NEVER_REPLICATED 3
41 
42 #define REPL_INTEGRITY_FILE 1
43 #define REPL_INTEGRITY_TREE 2
44 
45 #define REPL_EXTENT_FILE 1
46 #define REPL_EXTENT_TREE 2
47 
48 #define REPL_EXPORT_INTEGRITY_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+0)
49 #define REPL_EXPORT_EXTENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+1)
50 
51 typedef struct _REPL_INFO_0
52 {
64 
65 typedef struct _REPL_INFO_1000
66 {
69 
70 typedef struct _REPL_INFO_1001
71 {
74 
75 typedef struct _REPL_INFO_1002
76 {
79 
80 typedef struct _REPL_INFO_1003
81 {
84 
88  _In_ LPCWSTR servername OPTIONAL,
91 
93 WINAPI
95  _In_opt_ LPCWSTR servername,
97  _In_ const LPBYTE buf,
98  _Out_opt_ LPDWORD parm_err);
99 
100 typedef struct _REPL_EDIR_INFO_0
101 {
104 
105 typedef struct _REPL_EDIR_INFO_1
106 {
111 
112 typedef struct _REPL_EDIR_INFO_2
113 {
120 
121 typedef struct _REPL_EDIR_INFO_1000
122 {
125 
126 typedef struct _REPL_EDIR_INFO_1001
127 {
130 
131 typedef struct _REPL_IDIR_INFO_0
132 {
135 
136 typedef struct _REPL_IDIR_INFO_1
137 {
145 
149  _In_opt_ LPCWSTR servername,
150  _In_ DWORD level,
151  _In_ const LPBYTE buf,
152  _Out_opt_ LPDWORD parm_err);
153 
157  _In_opt_ LPCWSTR servername,
159 
163  _In_opt_ LPCWSTR servername,
164  _In_ DWORD level,
166  _In_ DWORD prefmaxlen,
167  _Out_ LPDWORD entriesread,
168  _Out_ LPDWORD totalentries,
169  _Inout_opt_ LPDWORD resumehandle);
170 
174  _In_opt_ LPCWSTR servername,
176  _In_ DWORD level,
177  _Out_ LPBYTE* bufptr);
178 
182  _In_opt_ LPCWSTR servername,
184  _In_ DWORD level,
185  _In_ const LPBYTE buf,
186  _Out_opt_ LPDWORD parm_err);
187 
191  _In_opt_ LPCWSTR servername,
193 
197  _In_opt_ LPCWSTR servername,
199  _In_ DWORD unlockforce);
200 
204  _In_opt_ LPCWSTR servername,
205  _In_ DWORD level,
206  _In_ const LPBYTE buf,
207  _Out_opt_ LPDWORD parm_err);
208 
212  _In_opt_ LPCWSTR servername,
214 
218  _In_opt_ LPCWSTR servername,
219  _In_ DWORD level,
221  _In_ DWORD prefmaxlen,
222  _Out_ LPDWORD entriesread,
223  _Out_ LPDWORD totalentries,
224  _Inout_opt_ LPDWORD resumehandle);
225 
229  _In_opt_ LPCWSTR servername,
231  _In_ DWORD level,
232  _Out_ LPBYTE* bufptr);
233 
237  _In_opt_ LPCWSTR servername,
239 
243  _In_opt_ LPCWSTR servername,
245  _In_ DWORD unlockforce);
246 
247 #ifdef __cplusplus
248 }
249 #endif
DWORD rp1002_guardtime
Definition: lmrepl.h:77
struct _REPL_INFO_0 * PREPL_INFO_0
DWORD rp0_interval
Definition: lmrepl.h:59
GLint level
Definition: gl.h:1546
struct _REPL_IDIR_INFO_0 * PREPL_IDIR_INFO_0
struct _REPL_IDIR_INFO_0 * LPREPL_IDIR_INFO_0
struct _REPL_EDIR_INFO_1 * PREPL_EDIR_INFO_1
NET_API_STATUS NET_API_FUNCTION NetReplExportDirAdd(_In_opt_ LPCWSTR servername, _In_ DWORD level, _In_ const LPBYTE buf, _Out_opt_ LPDWORD parm_err)
Definition: obsolete.c:235
#define _In_opt_
Definition: ms_sal.h:309
static unsigned int bufptr
Definition: tncon.cpp:77
DWORD rped1_extent
Definition: lmrepl.h:109
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185
LPWSTR rpid1_mastername
Definition: lmrepl.h:140
#define _Out_
Definition: ms_sal.h:345
DWORD rped2_lockcount
Definition: lmrepl.h:117
LPWSTR rpid0_dirname
Definition: lmrepl.h:133
struct _REPL_EDIR_INFO_2 * PREPL_EDIR_INFO_2
LPWSTR rp0_exportlist
Definition: lmrepl.h:55
struct _REPL_EDIR_INFO_1000 REPL_EDIR_INFO_1000
DWORD rped2_locktime
Definition: lmrepl.h:118
LPWSTR rped0_dirname
Definition: lmrepl.h:102
DWORD rp1000_interval
Definition: lmrepl.h:67
LPWSTR rp0_importpath
Definition: lmrepl.h:56
__cdecl __MINGW_NOTHROW char * dirname(char *)
DWORD rp0_guardtime
Definition: lmrepl.h:61
struct _REPL_EDIR_INFO_1 REPL_EDIR_INFO_1
struct _REPL_EDIR_INFO_2 REPL_EDIR_INFO_2
NET_API_STATUS NET_API_FUNCTION NetReplImportDirAdd(_In_opt_ LPCWSTR servername, _In_ DWORD level, _In_ const LPBYTE buf, _Out_opt_ LPDWORD parm_err)
Definition: obsolete.c:329
struct _REPL_EDIR_INFO_1000 * PREPL_EDIR_INFO_1000
DWORD rped2_extent
Definition: lmrepl.h:116
struct _REPL_INFO_1000 * PREPL_INFO_1000
struct _REPL_EDIR_INFO_1000 * LPREPL_EDIR_INFO_1000
struct _REPL_INFO_1000 REPL_INFO_1000
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
struct _REPL_INFO_1002 * PREPL_INFO_1002
struct _REPL_INFO_1000 * LPREPL_INFO_1000
unsigned char * LPBYTE
Definition: typedefs.h:53
struct _REPL_EDIR_INFO_1 * LPREPL_EDIR_INFO_1
struct _REPL_EDIR_INFO_1001 * PREPL_EDIR_INFO_1001
struct _REPL_IDIR_INFO_1 REPL_IDIR_INFO_1
NET_API_STATUS NET_API_FUNCTION NetReplImportDirEnum(_In_opt_ LPCWSTR servername, _In_ DWORD level, _Out_ LPBYTE *bufptr, _In_ DWORD prefmaxlen, _Out_ LPDWORD entriesread, _Out_ LPDWORD totalentries, _Inout_opt_ LPDWORD resumehandle)
Definition: obsolete.c:351
#define _In_
Definition: ms_sal.h:308
LPWSTR rp0_exportpath
Definition: lmrepl.h:54
NET_API_STATUS NET_API_FUNCTION NetReplImportDirDel(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:341
struct _REPL_IDIR_INFO_0 REPL_IDIR_INFO_0
struct _REPL_IDIR_INFO_1 * PREPL_IDIR_INFO_1
struct _REPL_INFO_1002 * LPREPL_INFO_1002
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
LPWSTR rpid1_dirname
Definition: lmrepl.h:138
DWORD rped1001_extent
Definition: lmrepl.h:128
struct _REPL_INFO_1003 * PREPL_INFO_1003
DWORD rpid1_state
Definition: lmrepl.h:139
DWORD rpid1_locktime
Definition: lmrepl.h:143
NET_API_STATUS NET_API_FUNCTION NetReplExportDirGetInfo(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD level, _Out_ LPBYTE *bufptr)
Definition: obsolete.c:272
#define WINAPI
Definition: msvc.h:6
struct _REPL_INFO_1001 * LPREPL_INFO_1001
DWORD rp0_role
Definition: lmrepl.h:53
unsigned long DWORD
Definition: ntddk_ex.h:95
#define NET_API_FUNCTION
Definition: lmcons.h:7
LPWSTR rped2_dirname
Definition: lmrepl.h:114
DWORD rped1_integrity
Definition: lmrepl.h:108
LPWSTR rp0_importlist
Definition: lmrepl.h:57
DWORD rped2_integrity
Definition: lmrepl.h:115
struct _REPL_INFO_0 * LPREPL_INFO_0
#define _Inout_opt_
Definition: ms_sal.h:379
DWORD rped1000_integrity
Definition: lmrepl.h:123
DWORD rp1001_pulse
Definition: lmrepl.h:72
struct _REPL_EDIR_INFO_1001 REPL_EDIR_INFO_1001
struct _REPL_IDIR_INFO_1 * LPREPL_IDIR_INFO_1
DWORD rp0_pulse
Definition: lmrepl.h:60
NET_API_STATUS NET_API_FUNCTION NetReplImportDirUnlock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD unlockforce)
Definition: obsolete.c:388
NET_API_STATUS NET_API_FUNCTION NetReplExportDirEnum(_In_opt_ LPCWSTR servername, _In_ DWORD level, _Out_ LPBYTE *bufptr, _In_ DWORD prefmaxlen, _Out_ LPDWORD entriesread, _Out_ LPDWORD totalentries, _Inout_opt_ LPDWORD resumehandle)
Definition: obsolete.c:257
NET_API_STATUS NET_API_FUNCTION NetReplExportDirLock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:284
struct _REPL_INFO_0 REPL_INFO_0
NET_API_STATUS NET_API_FUNCTION NetReplExportDirDel(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:247
LPWSTR rp0_logonusername
Definition: lmrepl.h:58
struct _REPL_EDIR_INFO_0 * PREPL_EDIR_INFO_0
struct _REPL_EDIR_INFO_1001 * LPREPL_EDIR_INFO_1001
struct _REPL_INFO_1003 REPL_INFO_1003
NET_API_STATUS WINAPI NetReplSetInfo(_In_opt_ LPCWSTR servername, _In_ DWORD level, _In_ const LPBYTE buf, _Out_opt_ LPDWORD parm_err)
Definition: obsolete.c:399
NET_API_STATUS NET_API_FUNCTION NetReplExportDirUnlock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD unlockforce)
Definition: obsolete.c:307
#define _Out_opt_
Definition: ms_sal.h:346
NET_API_STATUS NET_API_FUNCTION NetReplImportDirLock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:378
DWORD rp1003_random
Definition: lmrepl.h:82
struct _REPL_EDIR_INFO_0 REPL_EDIR_INFO_0
NET_API_STATUS NET_API_FUNCTION NetReplGetInfo(_In_ LPCWSTR servername OPTIONAL, _In_ DWORD level, _Out_ LPBYTE *bufptr)
uint32_t * LPDWORD
Definition: typedefs.h:59
NET_API_STATUS NET_API_FUNCTION NetReplExportDirSetInfo(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD level, _In_ const LPBYTE buf, _Out_opt_ LPDWORD parm_err)
Definition: obsolete.c:294
DWORD rpid1_lockcount
Definition: lmrepl.h:142
DWORD rp0_random
Definition: lmrepl.h:62
struct _REPL_INFO_1002 REPL_INFO_1002
struct _REPL_EDIR_INFO_2 * LPREPL_EDIR_INFO_2
WCHAR * LPWSTR
Definition: xmlstorage.h:184
NET_API_STATUS NET_API_FUNCTION NetReplImportDirGetInfo(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD level, _Out_ LPBYTE *bufptr)
Definition: obsolete.c:366
struct _REPL_EDIR_INFO_0 * LPREPL_EDIR_INFO_0
struct _REPL_INFO_1003 * LPREPL_INFO_1003
LPWSTR rped1_dirname
Definition: lmrepl.h:107
DWORD rpid1_last_update_time
Definition: lmrepl.h:141
struct _REPL_INFO_1001 REPL_INFO_1001
struct _REPL_INFO_1001 * PREPL_INFO_1001
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68