1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1993.
//
// File: ReplAPI.h
//
// Contents: Public Replication APIs and Structures.
//
// History: 15-jul-93 PeterCo created
//
// Notes:
//
//--------------------------------------------------------------------------
#ifndef _REPLAPI_H_
#define _REPLAPI_H_
#ifdef __cplusplus
extern "C" {
#endif
EXPORTDEF STDAPI ReplCreateObject(
const WCHAR *pwszMachine,
const WCHAR *pwszOraRelativeName,
const CLSID& clsid,
REFIID itf,
PSECURITY_ATTRIBUTES psa,
void** ppitf);
EXPORTDEF STDAPI ReplDeleteObject(
const WCHAR *pwszMachine,
const WCHAR *pwszOraRelativeName);
#define REPL_REPLICATE_NONE (0x00)
#define REPL_REPLICATE_ASYNC (0x01) // replicate asynchronously
#define REPL_REPLICATE_META_DATA_ONLY (0x02) // replicate meta data only
// until all urgent changes
// have been applied.
#define REPL_REPLICATE_ALL_FLAGS ( REPL_REPLICATE_ASYNC | \
REPL_REPLICATE_META_DATA_ONLY )
EXPORTDEF STDAPI ReplReplicate(
const WCHAR *pwszMachine,
const WCHAR *pwszOraRelativeReplicaConnection,
DWORD options);
EXPORTDEF STDAPI ReplReplicateSingleObject(
const WCHAR *pDfsPathOraMachine,
const WCHAR *pDfsPathSrcObj,
const WCHAR *pDfsPathSrcMachine,
const WCHAR *pDfsPathDstObject,
const WCHAR *pDfsPathDstMachine,
BOOL bCreateDstIfRequired);
EXPORTDEF STDAPI ReplMetaDataReplicate(
const WCHAR *pwszMachine, // ORA to pull to
const WCHAR *pwszSource, // ORA to pull from
const WCHAR *pwszOraRelativeReplicaSet);
#define REPL_URGENT_NONE (0x00) // no flags
#define REPL_URGENT_NO_HYSTERESIS (0x01) // exclude from hysteresis calc.
#define REPL_URGENT_TRIGGER_IMMEDIATE (0x02) // force immediate urgent cycle
#define REPL_URGENT_ALL_FLAGS ( REPL_URGENT_NONE | \
REPL_URGENT_NO_HYSTERESIS | \
REPL_URGENT_TRIGGER_IMMEDIATE )
EXPORTDEF STDAPI ReplUrgentChangeNotify(
REFCLSID clsid, // should match CLSID on root IStg
DWORD flags, // ORing of URGENT_NOTIFY_*
PVOID reserved, // must be NULL
IStorage *pRootStorage); // must have STGM_READWRITE access
EXPORTDEF STDAPI ReplValidatePath(
const WCHAR *pDfsPathMachine, // in
const WCHAR *pLocalWin32Path, // in
WCHAR **ppDfsPath, // out - Dfs path to stuff into replica
// object's "root" field
HRESULT *phr); // out - S_OK indicates path is valid,
// FAILED(*phr) identifies why if invalid
EXPORTDEF STDAPI ReplPropagateMetaData(
const WCHAR *pDfsPathMachine, // in - which ORA is to do the propagating
// i.e. machine where changes were made
const WCHAR *pwszRSet); // in - name of replica set where changes
// were made - NULL means check all RSets
#ifdef __cplusplus
}
#endif
#endif // _REPLAPI_H_
|