repl.h
来自「IBM Lotus C++ API 7.0a for IBM Lotus Not」· C头文件 代码 · 共 130 行
H
130 行
#if defined(OS400) && (__OS400_TGTVRM__ >= 510)
#pragma datamodel(P128)
#endif
/*********************************************************************/
/* */
/* Licensed Materials - Property of IBM */
/* */
/* L-GHUS-5RWNHM, L-GHUS-5RWNFH */
/* (C) Copyright IBM Corp. 1989, 2005 All Rights Reserved */
/* */
/* US Government Users Restricted Rights - Use, duplication or */
/* disclosure restricted by GSA ADP Schedule Contract with */
/* IBM Corp. */
/* */
/*********************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/* Public definitions for Database Replicator */
#ifndef REPLR_DEFS
#define REPLR_DEFS
/* Wild Card Server Name */
#define WILD_CARD_SERVER_NAME "$$WildCardServer"
/* Options used when calling ReplicateWithServer */
#define REPL_OPTION_RCV_NOTES 0x00000001 /* Receive notes from server (pull) */
#define REPL_OPTION_SEND_NOTES 0x00000002 /* Send notes to server (push) */
#define REPL_OPTION_ALL_DBS 0x00000004 /* Replicate all database files */
#define REPL_OPTION_CLOSE_SESS 0x00000040 /* Close sessions when done */
#define REPL_OPTION_ALL_NTFS 0x00000400 /* Replicate NTFs as well */
#define REPL_OPTION_PRI_LOW 0x00000000 /* Low, Medium, & High priority databases*/
#define REPL_OPTION_PRI_MED 0x00004000 /* Medium & High priority databases only*/
#define REPL_OPTION_PRI_HI 0x00008000 /* High priority databases only*/
/* Use following bits with
ReplicateWithServerExt only */
/* 0x00010000-0x8000000 WILL NOT BE HONORED
BY V3 SERVERS, BECAUSE V3 ONLY LOOKS AT
THE FIRST 16 BITS! */
#define REPL_OPTION_ABSTRACT_RTF 0x00010000 /* Abstract/truncate docs
to summary data and
first RTF field. (~40K) */
#define REPL_OPTION_ABSTRACT_SMRY 0x00020000 /* Abstract/truncate docs
to summary only data. */
#define REPL_OPTION_PRIVATE 0x00400000 /* Replicate private documents
even if not selected by
default. */
#define REPL_OPTION_ALL_FILES (REPL_OPTION_ALL_DBS | REPL_OPTION_ALL_NTFS)
/* Replication statistics, returned by replicator */
typedef struct
{
long TotalFiles;
long FilesCompleted;
long NotesAdded;
long NotesDeleted;
long NotesUpdated;
long Successful;
long Failed;
long NumberErrors;
} REPLFILESTATS;
typedef struct
{
REPLFILESTATS Pull;
REPLFILESTATS Push;
long StubsInitialized;
long TotalUnreadExchanges;
long NumberErrors;
STATUS LastError;
} REPLSERVSTATS;
/* Replication extension structure to allow upwardly compatible changes
with arbitrary additional parameters in ReplicateWithServer. Only
TimeLimit is defined for V4. The parameter corresponding to this
structure in ReplicateWithServer, ExtendedOptions, may be set to
NULL as a shorthand for passing a completely zeroed structure.
*/
typedef struct
{
WORD Size; /* sizeof(REPLEXTENSIONS), allows for future expansion */
WORD TimeLimit; /* If non-zero, number of minutes replication
is allowed to execute before cancellation.
If not specified, no limit is imposed */
} REPLEXTENSIONS;
/* Replicator entry points */
STATUS LNPUBLIC ReplicateWithServerExt(char far *PortName,
char far *ServerName,
DWORD Options,
WORD NumFiles,
const char far *FileList,
REPLEXTENSIONS far *ExtendedOptions,
REPLSERVSTATS far *retStats);
STATUS LNPUBLIC ReplicateWithServer(char far *PortName,
char far *ServerName,
WORD Options,
WORD NumFiles,
const char far *FileList,
REPLSERVSTATS far *retStats);
#endif
#ifdef __cplusplus
}
#endif
#if defined(OS400) && (__OS400_TGTVRM__ >= 510)
#pragma datamodel(pop)
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?