Files
TeslaRel410/BORLAND/BC45/INCLUDE/LMREPL.H
T
CydandClaude Fable 5 63312e07f9 source410: literal 4.10 source reconstruction + BC++ 4.52 fleet toolchain archived
- BORLAND/: Borland C++ 4.52 (chosen over 4.5 by byte-match: CODE/RP/CW32.LIB
  is identical to 4.52's install lib). BCC32/TLINK32/TLIB/MAKE run natively on
  Win11; CODE/BT/OPT.MAK is the shipped BTL4OPT.EXE's exact flag recipe
  (extender = Borland PowerPack DPMI32, not Phar Lap TNT).
- restoration/source410/: the literal 1995-form reconstruction of the missing
  BT game source (never mixed into CODE/). Round 1-3 state:
  * 6 of 10 surviving original TUs COMPILE CLEAN under the period toolchain
    (BTMSSN, BTCNSL, BTSCNRL, BTTEAM, BTL4MODE, BTL4ARND) - first builds
    since 1996.
  * BT_L4/BTL4APP.CPP pilot reconstruction: 12/12 functions, Fail() lands on
    its binary-recorded line 400 exactly.
  * BT/BTCNSL.HPP: console wire IDs recovered from the binary's ctors
    (Killed=9, Damaged=10, ScoreUpdate=13, DeathWithoutHonor=15 [T1];
    TeamScore=12 flagged [T4]).
  * MUNGA/: 8 engine-header backfills back-dated from the BT412 WinTesla tree
    (VDATA numbering decomp-verified; AUDREND's OpenAL-era virtual removed -
    the period compiler is the drift detector).
  * Tooling: backdate.py (WinTesla->1995 header transform), compile410.sh
    (per-TU verification sweep under authentic OPT.MAK flags).
  * README: corrected roadmap - MECH.HPP is the capstone grown with the mech
    TU reconstructions; BTREG.CPP green = the header-family milestone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-19 07:33:26 -05:00

301 lines
7.2 KiB
C++

/*++ BUILD Version: 0004 // Increment this if a change has global effects
Module Name:
LmRepl.h
Abstract:
This file contains structures, function prototypes, and definitions
for the replicator APIs.
Author:
John Rogers (JohnRo) 17-Dec-1991
Environment:
User Mode - Win32
Portable to any flat, 32-bit environment. (Uses Win32 typedefs.)
Requires ANSI C extensions: slash-slash comments, long external names.
Notes:
You must include LmCons.h before this file.
Revision History:
17-Dec-1991 JohnRo
Created from RitaW's replicator API spec.
26-Dec-1991 JohnRo
Added REPL_EDIR_INFO_2 and subsetted REPL_EDIR_INFO_1.
Added INFOLEVEL equates.
Changed values of REPL_EXTENT_FILE and REPL_EXTENT_TREE.
07-Jan-1992 JohnRo
Corrected typedef name (LPREPL_INFO_100 s.b. LPREPL_INFO_0).
24-Jan-1992 JohnRo
Changed to use LPTSTR etc.
27-Feb-1992 JohnRo
Changed state not started to state never replicated.
--*/
/*
* C/C++ Run Time Library - Version 6.5
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
*/
#ifndef _LMREPL_
#define _LMREPL_
#define __LMREPL_H
#ifdef __cplusplus
extern "C" {
#endif
//
// Replicator Configuration APIs
//
#define REPL_ROLE_EXPORT 1
#define REPL_ROLE_IMPORT 2
#define REPL_ROLE_BOTH 3
#define REPL_INTERVAL_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 0)
#define REPL_PULSE_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 1)
#define REPL_GUARDTIME_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 2)
#define REPL_RANDOM_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 3)
typedef struct _REPL_INFO_0 {
DWORD rp0_role;
LPTSTR rp0_exportpath;
LPTSTR rp0_exportlist;
LPTSTR rp0_importpath;
LPTSTR rp0_importlist;
LPTSTR rp0_logonusername;
DWORD rp0_interval;
DWORD rp0_pulse;
DWORD rp0_guardtime;
DWORD rp0_random;
} REPL_INFO_0, *PREPL_INFO_0, *LPREPL_INFO_0;
typedef struct _REPL_INFO_1000 {
DWORD rp1000_interval;
} REPL_INFO_1000, *PREPL_INFO_1000, *LPREPL_INFO_1000;
typedef struct _REPL_INFO_1001 {
DWORD rp1001_pulse;
} REPL_INFO_1001, *PREPL_INFO_1001, *LPREPL_INFO_1001;
typedef struct _REPL_INFO_1002 {
DWORD rp1002_guardtime;
} REPL_INFO_1002, *PREPL_INFO_1002, *LPREPL_INFO_1002;
typedef struct _REPL_INFO_1003 {
DWORD rp1003_random;
} REPL_INFO_1003, *PREPL_INFO_1003, *LPREPL_INFO_1003;
NET_API_STATUS NET_API_FUNCTION
NetReplGetInfo (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
OUT LPBYTE * bufptr
);
NET_API_STATUS NET_API_FUNCTION
NetReplSetInfo (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
IN LPBYTE buf,
OUT LPDWORD parm_err OPTIONAL
);
//
// Replicator Export Directory APIs
//
#define REPL_INTEGRITY_FILE 1
#define REPL_INTEGRITY_TREE 2
#define REPL_EXTENT_FILE 1
#define REPL_EXTENT_TREE 2
#define REPL_EXPORT_INTEGRITY_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 0)
#define REPL_EXPORT_EXTENT_INFOLEVEL (PARMNUM_BASE_INFOLEVEL + 1)
typedef struct _REPL_EDIR_INFO_0 {
LPTSTR rped0_dirname;
} REPL_EDIR_INFO_0, *PREPL_EDIR_INFO_0, *LPREPL_EDIR_INFO_0;
typedef struct _REPL_EDIR_INFO_1 {
LPTSTR rped1_dirname;
DWORD rped1_integrity;
DWORD rped1_extent;
} REPL_EDIR_INFO_1, *PREPL_EDIR_INFO_1, *LPREPL_EDIR_INFO_1;
typedef struct _REPL_EDIR_INFO_2 {
LPTSTR rped2_dirname;
DWORD rped2_integrity;
DWORD rped2_extent;
DWORD rped2_lockcount;
DWORD rped2_locktime;
} REPL_EDIR_INFO_2, *PREPL_EDIR_INFO_2, *LPREPL_EDIR_INFO_2;
typedef struct _REPL_EDIR_INFO_1000 {
DWORD rped1000_integrity;
} REPL_EDIR_INFO_1000, *PREPL_EDIR_INFO_1000, *LPREPL_EDIR_INFO_1000;
typedef struct _REPL_EDIR_INFO_1001 {
DWORD rped1001_extent;
} REPL_EDIR_INFO_1001, *PREPL_EDIR_INFO_1001, *LPREPL_EDIR_INFO_1001;
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirAdd (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
IN LPBYTE buf,
OUT LPDWORD parm_err OPTIONAL
);
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirDel (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname
);
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirEnum (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
OUT LPBYTE * bufptr,
IN DWORD prefmaxlen,
OUT LPDWORD entriesread,
OUT LPDWORD totalentries,
IN OUT LPDWORD resumehandle OPTIONAL
);
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirGetInfo (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname,
IN DWORD level,
OUT LPBYTE * bufptr
);
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirSetInfo (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname,
IN DWORD level,
IN LPBYTE buf,
OUT LPDWORD parm_err OPTIONAL
);
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirLock (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname
);
NET_API_STATUS NET_API_FUNCTION
NetReplExportDirUnlock (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname,
IN DWORD unlockforce
);
#define REPL_UNLOCK_NOFORCE 0
#define REPL_UNLOCK_FORCE 1
//
// Replicator Import Directory APIs
//
typedef struct _REPL_IDIR_INFO_0 {
LPTSTR rpid0_dirname;
} REPL_IDIR_INFO_0, *PREPL_IDIR_INFO_0, *LPREPL_IDIR_INFO_0;
typedef struct _REPL_IDIR_INFO_1 {
LPTSTR rpid1_dirname;
DWORD rpid1_state;
LPTSTR rpid1_mastername;
DWORD rpid1_last_update_time;
DWORD rpid1_lockcount;
DWORD rpid1_locktime;
} REPL_IDIR_INFO_1, *PREPL_IDIR_INFO_1, *LPREPL_IDIR_INFO_1;
NET_API_STATUS NET_API_FUNCTION
NetReplImportDirAdd (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
IN LPBYTE buf,
OUT LPDWORD parm_err OPTIONAL
);
NET_API_STATUS NET_API_FUNCTION
NetReplImportDirDel (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname
);
NET_API_STATUS NET_API_FUNCTION
NetReplImportDirEnum (
IN LPTSTR servername OPTIONAL,
IN DWORD level,
OUT LPBYTE * bufptr,
IN DWORD prefmaxlen,
OUT LPDWORD entriesread,
OUT LPDWORD totalentries,
IN OUT LPDWORD resumehandle OPTIONAL
);
NET_API_STATUS NET_API_FUNCTION
NetReplImportDirGetInfo (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname,
IN DWORD level,
OUT LPBYTE * bufptr
);
NET_API_STATUS NET_API_FUNCTION
NetReplImportDirLock (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname
);
NET_API_STATUS NET_API_FUNCTION
NetReplImportDirUnlock (
IN LPTSTR servername OPTIONAL,
IN LPTSTR dirname,
IN DWORD unlockforce
);
#define REPL_STATE_OK 0
#define REPL_STATE_NO_MASTER 1
#define REPL_STATE_NO_SYNC 2
#define REPL_STATE_NEVER_REPLICATED 3
#ifdef __cplusplus
}
#endif
#endif //_LMREPL_