ReactOS 0.4.15-dev-8145-ga541a46
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
22extern "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
51typedef struct _REPL_INFO_0
52{
64
65typedef struct _REPL_INFO_1000
66{
69
70typedef struct _REPL_INFO_1001
71{
74
75typedef struct _REPL_INFO_1002
76{
79
80typedef struct _REPL_INFO_1003
81{
84
88 _In_ LPCWSTR servername OPTIONAL,
91
95 _In_opt_ LPCWSTR servername,
97 _In_ const LPBYTE buf,
98 _Out_opt_ LPDWORD parm_err);
99
100typedef struct _REPL_EDIR_INFO_0
101{
104
105typedef struct _REPL_EDIR_INFO_1
106{
111
112typedef struct _REPL_EDIR_INFO_2
113{
120
122{
125
127{
130
131typedef struct _REPL_IDIR_INFO_0
132{
135
136typedef struct _REPL_IDIR_INFO_1
137{
145
149 _In_opt_ LPCWSTR servername,
151 _In_ const LPBYTE buf,
152 _Out_opt_ LPDWORD parm_err);
153
157 _In_opt_ LPCWSTR servername,
159
163 _In_opt_ LPCWSTR servername,
166 _In_ DWORD prefmaxlen,
167 _Out_ LPDWORD entriesread,
168 _Out_ LPDWORD totalentries,
169 _Inout_opt_ LPDWORD resumehandle);
170
174 _In_opt_ LPCWSTR servername,
178
182 _In_opt_ LPCWSTR servername,
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,
206 _In_ const LPBYTE buf,
207 _Out_opt_ LPDWORD parm_err);
208
212 _In_opt_ LPCWSTR servername,
214
218 _In_opt_ LPCWSTR servername,
221 _In_ DWORD prefmaxlen,
222 _Out_ LPDWORD entriesread,
223 _Out_ LPDWORD totalentries,
224 _Inout_opt_ LPDWORD resumehandle);
225
229 _In_opt_ LPCWSTR servername,
233
237 _In_opt_ LPCWSTR servername,
239
243 _In_opt_ LPCWSTR servername,
245 _In_ DWORD unlockforce);
246
247#ifdef __cplusplus
248}
249#endif
unsigned long DWORD
Definition: ntddk_ex.h:95
GLint level
Definition: gl.h:1546
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
__cdecl __MINGW_NOTHROW char * dirname(char *)
#define NET_API_FUNCTION
Definition: lmcons.h:7
struct _REPL_EDIR_INFO_1001 * LPREPL_EDIR_INFO_1001
struct _REPL_EDIR_INFO_0 REPL_EDIR_INFO_0
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
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_INFO_1003 * PREPL_INFO_1003
struct _REPL_IDIR_INFO_0 * LPREPL_IDIR_INFO_0
struct _REPL_EDIR_INFO_0 * LPREPL_EDIR_INFO_0
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
struct _REPL_EDIR_INFO_2 * PREPL_EDIR_INFO_2
struct _REPL_IDIR_INFO_1 * LPREPL_IDIR_INFO_1
struct _REPL_EDIR_INFO_1 * LPREPL_EDIR_INFO_1
struct _REPL_IDIR_INFO_1 REPL_IDIR_INFO_1
struct _REPL_INFO_1001 * PREPL_INFO_1001
NET_API_STATUS NET_API_FUNCTION NetReplExportDirUnlock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD unlockforce)
Definition: obsolete.c:307
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_2 REPL_EDIR_INFO_2
NET_API_STATUS NET_API_FUNCTION NetReplExportDirLock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:284
struct _REPL_INFO_0 * PREPL_INFO_0
struct _REPL_INFO_1003 REPL_INFO_1003
struct _REPL_INFO_1000 REPL_INFO_1000
struct _REPL_EDIR_INFO_0 * PREPL_EDIR_INFO_0
NET_API_STATUS NET_API_FUNCTION NetReplExportDirGetInfo(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD level, _Out_ LPBYTE *bufptr)
Definition: obsolete.c:272
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_EDIR_INFO_1000 * LPREPL_EDIR_INFO_1000
struct _REPL_EDIR_INFO_1 * PREPL_EDIR_INFO_1
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
struct _REPL_EDIR_INFO_1 REPL_EDIR_INFO_1
struct _REPL_EDIR_INFO_1000 REPL_EDIR_INFO_1000
struct _REPL_EDIR_INFO_1000 * PREPL_EDIR_INFO_1000
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
NET_API_STATUS NET_API_FUNCTION NetReplImportDirUnlock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname, _In_ DWORD unlockforce)
Definition: obsolete.c:388
struct _REPL_INFO_1001 REPL_INFO_1001
struct _REPL_INFO_1002 * LPREPL_INFO_1002
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
struct _REPL_INFO_1000 * LPREPL_INFO_1000
NET_API_STATUS NET_API_FUNCTION NetReplImportDirLock(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:378
struct _REPL_IDIR_INFO_0 * PREPL_IDIR_INFO_0
struct _REPL_EDIR_INFO_2 * LPREPL_EDIR_INFO_2
struct _REPL_INFO_0 * LPREPL_INFO_0
struct _REPL_INFO_1000 * PREPL_INFO_1000
NET_API_STATUS NET_API_FUNCTION NetReplExportDirDel(_In_opt_ LPCWSTR servername, _In_ LPCWSTR dirname)
Definition: obsolete.c:247
struct _REPL_EDIR_INFO_1001 REPL_EDIR_INFO_1001
struct _REPL_INFO_1002 * PREPL_INFO_1002
struct _REPL_IDIR_INFO_1 * PREPL_IDIR_INFO_1
struct _REPL_INFO_1003 * LPREPL_INFO_1003
struct _REPL_INFO_1001 * LPREPL_INFO_1001
struct _REPL_EDIR_INFO_1001 * PREPL_EDIR_INFO_1001
struct _REPL_INFO_1002 REPL_INFO_1002
NET_API_STATUS NET_API_FUNCTION NetReplGetInfo(_In_ LPCWSTR servername OPTIONAL, _In_ DWORD level, _Out_ LPBYTE *bufptr)
struct _REPL_INFO_0 REPL_INFO_0
DWORD NET_API_STATUS
Definition: ms-dtyp.idl:91
#define _Out_opt_
Definition: ms_sal.h:346
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
LPWSTR rped0_dirname
Definition: lmrepl.h:102
DWORD rped1000_integrity
Definition: lmrepl.h:123
DWORD rped1001_extent
Definition: lmrepl.h:128
DWORD rped1_extent
Definition: lmrepl.h:109
LPWSTR rped1_dirname
Definition: lmrepl.h:107
DWORD rped1_integrity
Definition: lmrepl.h:108
DWORD rped2_lockcount
Definition: lmrepl.h:117
LPWSTR rped2_dirname
Definition: lmrepl.h:114
DWORD rped2_extent
Definition: lmrepl.h:116
DWORD rped2_integrity
Definition: lmrepl.h:115
DWORD rped2_locktime
Definition: lmrepl.h:118
LPWSTR rpid0_dirname
Definition: lmrepl.h:133
DWORD rpid1_last_update_time
Definition: lmrepl.h:141
DWORD rpid1_locktime
Definition: lmrepl.h:143
DWORD rpid1_lockcount
Definition: lmrepl.h:142
LPWSTR rpid1_dirname
Definition: lmrepl.h:138
LPWSTR rpid1_mastername
Definition: lmrepl.h:140
DWORD rpid1_state
Definition: lmrepl.h:139
LPWSTR rp0_importlist
Definition: lmrepl.h:57
LPWSTR rp0_exportlist
Definition: lmrepl.h:55
LPWSTR rp0_logonusername
Definition: lmrepl.h:58
LPWSTR rp0_exportpath
Definition: lmrepl.h:54
DWORD rp0_random
Definition: lmrepl.h:62
DWORD rp0_role
Definition: lmrepl.h:53
DWORD rp0_interval
Definition: lmrepl.h:59
DWORD rp0_guardtime
Definition: lmrepl.h:61
LPWSTR rp0_importpath
Definition: lmrepl.h:56
DWORD rp0_pulse
Definition: lmrepl.h:60
DWORD rp1000_interval
Definition: lmrepl.h:67
DWORD rp1001_pulse
Definition: lmrepl.h:72
DWORD rp1002_guardtime
Definition: lmrepl.h:77
DWORD rp1003_random
Definition: lmrepl.h:82
static unsigned int bufptr
Definition: tncon.cpp:77
unsigned char * LPBYTE
Definition: typedefs.h:53
uint32_t * LPDWORD
Definition: typedefs.h:59
#define WINAPI
Definition: msvc.h:6
WCHAR * LPWSTR
Definition: xmlstorage.h:184
const WCHAR * LPCWSTR
Definition: xmlstorage.h:185