source: Daodan/MinGW/include/lmrepl.h@ 1143

Last change on this file since 1143 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 3.7 KB
Line 
1#ifndef _LMREPL_H
2#define _LMREPL_H
3#if __GNUC__ >=3
4#pragma GCC system_header
5#endif
6
7#ifdef __cplusplus
8extern "C" {
9#endif
10#define REPL_ROLE_EXPORT 1
11#define REPL_ROLE_IMPORT 2
12#define REPL_ROLE_BOTH 3
13#define REPL_INTERVAL_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+0)
14#define REPL_PULSE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+1)
15#define REPL_GUARDTIME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+2)
16#define REPL_RANDOM_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+3)
17#define REPL_UNLOCK_NOFORCE 0
18#define REPL_UNLOCK_FORCE 1
19#define REPL_STATE_OK 0
20#define REPL_STATE_NO_MASTER 1
21#define REPL_STATE_NO_SYNC 2
22#define REPL_STATE_NEVER_REPLICATED 3
23#define REPL_INTEGRITY_FILE 1
24#define REPL_INTEGRITY_TREE 2
25#define REPL_EXTENT_FILE 1
26#define REPL_EXTENT_TREE 2
27#define REPL_EXPORT_INTEGRITY_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+0)
28#define REPL_EXPORT_EXTENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL+1)
29typedef struct _REPL_INFO_0 {
30 DWORD rp0_role;
31 LPWSTR rp0_exportpath;
32 LPWSTR rp0_exportlist;
33 LPWSTR rp0_importpath;
34 LPWSTR rp0_importlist;
35 LPWSTR rp0_logonusername;
36 DWORD rp0_interval;
37 DWORD rp0_pulse;
38 DWORD rp0_guardtime;
39 DWORD rp0_random;
40} REPL_INFO_0,*PREPL_INFO_0,*LPREPL_INFO_0;
41typedef struct _REPL_INFO_1000 { DWORD rp1000_interval; } REPL_INFO_1000,*PREPL_INFO_1000,*LPREPL_INFO_1000;
42typedef struct _REPL_INFO_1001 { DWORD rp1001_pulse; } REPL_INFO_1001,*PREPL_INFO_1001,*LPREPL_INFO_1001;
43typedef struct _REPL_INFO_1002 { DWORD rp1002_guardtime; } REPL_INFO_1002,*PREPL_INFO_1002,*LPREPL_INFO_1002;
44typedef struct _REPL_INFO_1003 { DWORD rp1003_random; } REPL_INFO_1003,*PREPL_INFO_1003,*LPREPL_INFO_1003;
45
46NET_API_STATUS WINAPI NetReplGetInfo(LPCWSTR,DWORD,PBYTE*);
47NET_API_STATUS WINAPI NetReplSetInfo(LPCWSTR,DWORD,PBYTE,PDWORD);
48typedef struct _REPL_EDIR_INFO_0 {
49 LPWSTR rped0_dirname;
50} REPL_EDIR_INFO_0,*PREPL_EDIR_INFO_0,*LPREPL_EDIR_INFO_0;
51typedef struct _REPL_EDIR_INFO_1 {
52 LPWSTR rped1_dirname;
53 DWORD rped1_integrity;
54 DWORD rped1_extent;
55} REPL_EDIR_INFO_1,*PREPL_EDIR_INFO_1,*LPREPL_EDIR_INFO_1;
56typedef struct _REPL_EDIR_INFO_2 {
57 LPWSTR rped2_dirname;
58 DWORD rped2_integrity;
59 DWORD rped2_extent;
60 DWORD rped2_lockcount;
61 DWORD rped2_locktime;
62} REPL_EDIR_INFO_2,*PREPL_EDIR_INFO_2,*LPREPL_EDIR_INFO_2;
63typedef struct _REPL_EDIR_INFO_1000 {
64 DWORD rped1000_integrity;
65} REPL_EDIR_INFO_1000,*PREPL_EDIR_INFO_1000,*LPREPL_EDIR_INFO_1000;
66typedef struct _REPL_EDIR_INFO_1001 {
67 DWORD rped1001_extent;
68} REPL_EDIR_INFO_1001,*PREPL_EDIR_INFO_1001,*LPREPL_EDIR_INFO_1001;
69typedef struct _REPL_IDIR_INFO_0 { LPWSTR rpid0_dirname; } REPL_IDIR_INFO_0,*PREPL_IDIR_INFO_0,*LPREPL_IDIR_INFO_0;
70typedef struct _REPL_IDIR_INFO_1 {
71 LPWSTR rpid1_dirname;
72 DWORD rpid1_state;
73 LPWSTR rpid1_mastername;
74 DWORD rpid1_last_update_time;
75 DWORD rpid1_lockcount;
76 DWORD rpid1_locktime;
77} REPL_IDIR_INFO_1,*PREPL_IDIR_INFO_1,*LPREPL_IDIR_INFO_1;
78NET_API_STATUS WINAPI NetReplExportDirAdd(LPCWSTR,DWORD,PBYTE,PDWORD);
79NET_API_STATUS WINAPI NetReplExportDirDel(LPCWSTR,LPCWSTR);
80NET_API_STATUS WINAPI NetReplExportDirEnum(LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
81NET_API_STATUS WINAPI NetReplExportDirGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*);
82NET_API_STATUS WINAPI NetReplExportDirSetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE,PDWORD);
83NET_API_STATUS WINAPI NetReplExportDirLock(LPCWSTR,LPCWSTR);
84NET_API_STATUS WINAPI NetReplExportDirUnlock(LPCWSTR,LPCWSTR,DWORD);
85NET_API_STATUS WINAPI NetReplImportDirAdd(LPCWSTR,DWORD,PBYTE,PDWORD);
86NET_API_STATUS WINAPI NetReplImportDirDel(LPCWSTR,LPCWSTR);
87NET_API_STATUS WINAPI NetReplImportDirEnum(LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD);
88NET_API_STATUS WINAPI NetReplImportDirGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*);
89NET_API_STATUS WINAPI NetReplImportDirLock(LPCWSTR,LPCWSTR);
90NET_API_STATUS WINAPI NetReplImportDirUnlock(LPCWSTR,LPCWSTR,DWORD);
91#ifdef __cplusplus
92}
93#endif
94#endif
Note: See TracBrowser for help on using the repository browser.