| 1 |
#ifndef _LMREPL_H |
| 2 |
#define _LMREPL_H |
| 3 |
#if __GNUC__ >=3 |
| 4 |
#pragma GCC system_header |
| 5 |
#endif |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
extern "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) |
| 29 |
typedef 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; |
| 41 |
typedef struct _REPL_INFO_1000 { DWORD rp1000_interval; } REPL_INFO_1000,*PREPL_INFO_1000,*LPREPL_INFO_1000; |
| 42 |
typedef struct _REPL_INFO_1001 { DWORD rp1001_pulse; } REPL_INFO_1001,*PREPL_INFO_1001,*LPREPL_INFO_1001; |
| 43 |
typedef struct _REPL_INFO_1002 { DWORD rp1002_guardtime; } REPL_INFO_1002,*PREPL_INFO_1002,*LPREPL_INFO_1002; |
| 44 |
typedef struct _REPL_INFO_1003 { DWORD rp1003_random; } REPL_INFO_1003,*PREPL_INFO_1003,*LPREPL_INFO_1003; |
| 45 |
|
| 46 |
NET_API_STATUS WINAPI NetReplGetInfo(LPCWSTR,DWORD,PBYTE*); |
| 47 |
NET_API_STATUS WINAPI NetReplSetInfo(LPCWSTR,DWORD,PBYTE,PDWORD); |
| 48 |
typedef struct _REPL_EDIR_INFO_0 { |
| 49 |
LPWSTR rped0_dirname; |
| 50 |
} REPL_EDIR_INFO_0,*PREPL_EDIR_INFO_0,*LPREPL_EDIR_INFO_0; |
| 51 |
typedef 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; |
| 56 |
typedef 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; |
| 63 |
typedef struct _REPL_EDIR_INFO_1000 { |
| 64 |
DWORD rped1000_integrity; |
| 65 |
} REPL_EDIR_INFO_1000,*PREPL_EDIR_INFO_1000,*LPREPL_EDIR_INFO_1000; |
| 66 |
typedef struct _REPL_EDIR_INFO_1001 { |
| 67 |
DWORD rped1001_extent; |
| 68 |
} REPL_EDIR_INFO_1001,*PREPL_EDIR_INFO_1001,*LPREPL_EDIR_INFO_1001; |
| 69 |
typedef struct _REPL_IDIR_INFO_0 { LPWSTR rpid0_dirname; } REPL_IDIR_INFO_0,*PREPL_IDIR_INFO_0,*LPREPL_IDIR_INFO_0; |
| 70 |
typedef 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; |
| 78 |
NET_API_STATUS WINAPI NetReplExportDirAdd(LPCWSTR,DWORD,PBYTE,PDWORD); |
| 79 |
NET_API_STATUS WINAPI NetReplExportDirDel(LPCWSTR,LPCWSTR); |
| 80 |
NET_API_STATUS WINAPI NetReplExportDirEnum(LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD); |
| 81 |
NET_API_STATUS WINAPI NetReplExportDirGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*); |
| 82 |
NET_API_STATUS WINAPI NetReplExportDirSetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE,PDWORD); |
| 83 |
NET_API_STATUS WINAPI NetReplExportDirLock(LPCWSTR,LPCWSTR); |
| 84 |
NET_API_STATUS WINAPI NetReplExportDirUnlock(LPCWSTR,LPCWSTR,DWORD); |
| 85 |
NET_API_STATUS WINAPI NetReplImportDirAdd(LPCWSTR,DWORD,PBYTE,PDWORD); |
| 86 |
NET_API_STATUS WINAPI NetReplImportDirDel(LPCWSTR,LPCWSTR); |
| 87 |
NET_API_STATUS WINAPI NetReplImportDirEnum(LPCWSTR,DWORD,PBYTE*,DWORD,PDWORD,PDWORD,PDWORD); |
| 88 |
NET_API_STATUS WINAPI NetReplImportDirGetInfo(LPCWSTR,LPCWSTR,DWORD,PBYTE*); |
| 89 |
NET_API_STATUS WINAPI NetReplImportDirLock(LPCWSTR,LPCWSTR); |
| 90 |
NET_API_STATUS WINAPI NetReplImportDirUnlock(LPCWSTR,LPCWSTR,DWORD); |
| 91 |
#ifdef __cplusplus |
| 92 |
} |
| 93 |
#endif |
| 94 |
#endif |