- 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>
157 lines
3.6 KiB
C++
157 lines
3.6 KiB
C++
/*++ BUILD Version: 0001 // Increment this if a change has global effects
|
|
|
|
Module Name:
|
|
|
|
lmremutl.h
|
|
|
|
Abstract:
|
|
|
|
This file contains structures, function prototypes, and definitions
|
|
for the NetRemote API.
|
|
|
|
Author:
|
|
|
|
Dan Lafferty (danl) 10-Mar-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.
|
|
|
|
Revision History:
|
|
|
|
10-Mar-1991 danl
|
|
Created from LM2.0 header files and NT-LAN API Spec.
|
|
14-Mar-1991 JohnRo
|
|
Delete password case-sensitivity bit.
|
|
Change time of day structure to be NT style names.
|
|
22-Mar-1991 JohnRo
|
|
Changed tod_timezone to be signed. Got rid of tabs in file.
|
|
06-May-1991 JohnRo
|
|
Implement UNICODE.
|
|
31-Oct-1991 JohnRo
|
|
RAID 3414: allow explicit local server name. Also allow use of
|
|
NetRemoteComputerSupports() for local computer.
|
|
06-May-1993 JohnRo
|
|
RAID 8849: Export RxRemoteApi for general use.
|
|
|
|
--*/
|
|
|
|
/*
|
|
* C/C++ Run Time Library - Version 6.5
|
|
*
|
|
* Copyright (c) 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef _LMREMUTL_
|
|
#define _LMREMUTL_
|
|
#define __LMREMUTL_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
|
|
//
|
|
// Type Definitions
|
|
//
|
|
|
|
#ifndef DESC_CHAR_UNICODE
|
|
|
|
typedef CHAR DESC_CHAR;
|
|
|
|
#else // DESC_CHAR_UNICODE is defined
|
|
|
|
typedef WCHAR DESC_CHAR;
|
|
|
|
#endif // DESC_CHAR_UNICODE is defined
|
|
|
|
|
|
typedef DESC_CHAR * LPDESC;
|
|
|
|
|
|
//
|
|
// Function Prototypes
|
|
//
|
|
|
|
NET_API_STATUS NET_API_FUNCTION
|
|
NetRemoteTOD (
|
|
IN LPTSTR UncServerName,
|
|
OUT LPBYTE *BufferPtr
|
|
);
|
|
|
|
NET_API_STATUS NET_API_FUNCTION
|
|
NetRemoteComputerSupports(
|
|
IN LPTSTR UncServerName OPTIONAL, // Must start with "\\".
|
|
IN DWORD OptionsWanted, // Set SUPPORTS_ bits wanted.
|
|
OUT LPDWORD OptionsSupported // Supported features, masked.
|
|
);
|
|
|
|
NET_API_STATUS
|
|
RxRemoteApi(
|
|
IN DWORD ApiNumber,
|
|
IN LPTSTR UncServerName, // Required, with \\name.
|
|
IN LPDESC ParmDescString,
|
|
IN LPDESC DataDesc16 OPTIONAL,
|
|
IN LPDESC DataDesc32 OPTIONAL,
|
|
IN LPDESC DataDescSmb OPTIONAL,
|
|
IN LPDESC AuxDesc16 OPTIONAL,
|
|
IN LPDESC AuxDesc32 OPTIONAL,
|
|
IN LPDESC AuxDescSmb OPTIONAL,
|
|
IN DWORD Flags,
|
|
... // rest of API's arguments
|
|
);
|
|
|
|
|
|
|
|
//
|
|
// Data Structures
|
|
//
|
|
|
|
typedef struct _TIME_OF_DAY_INFO {
|
|
DWORD tod_elapsedt;
|
|
DWORD tod_msecs;
|
|
DWORD tod_hours;
|
|
DWORD tod_mins;
|
|
DWORD tod_secs;
|
|
DWORD tod_hunds;
|
|
LONG tod_timezone;
|
|
DWORD tod_tinterval;
|
|
DWORD tod_day;
|
|
DWORD tod_month;
|
|
DWORD tod_year;
|
|
DWORD tod_weekday;
|
|
} TIME_OF_DAY_INFO, *PTIME_OF_DAY_INFO, *LPTIME_OF_DAY_INFO;
|
|
|
|
//
|
|
// Special Values and Constants
|
|
//
|
|
|
|
//
|
|
// Mask bits for use with NetRemoteComputerSupports:
|
|
//
|
|
|
|
#define SUPPORTS_REMOTE_ADMIN_PROTOCOL 0x00000002L
|
|
#define SUPPORTS_RPC 0x00000004L
|
|
#define SUPPORTS_SAM_PROTOCOL 0x00000008L
|
|
#define SUPPORTS_UNICODE 0x00000010L
|
|
#define SUPPORTS_LOCAL 0x00000020L
|
|
#define SUPPORTS_ANY 0xFFFFFFFFL
|
|
|
|
//
|
|
// Flag bits for RxRemoteApi:
|
|
//
|
|
|
|
#define NO_PERMISSION_REQUIRED 0x00000001 // set if use NULL session
|
|
#define ALLOCATE_RESPONSE 0x00000002 // set if RxRemoteApi allocates response buffer
|
|
#define USE_SPECIFIC_TRANSPORT 0x80000000
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif //_LMREMUTL_
|