- 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>
342 lines
10 KiB
C++
342 lines
10 KiB
C++
/*****************************************************************************\
|
|
* *
|
|
* dde.h - Dynamic Data Exchange structures and definitions *
|
|
* *
|
|
\*****************************************************************************/
|
|
|
|
/*
|
|
* C/C++ Run Time Library - Version 6.5
|
|
*
|
|
* Copyright (c) 1994 by Borland International
|
|
* All Rights Reserved.
|
|
*
|
|
*/
|
|
|
|
#if !defined(__FLAT__)
|
|
#ifndef __DDE_H /* prevent multiple includes */
|
|
#define __DDE_H
|
|
|
|
#ifndef RC_INVOKED
|
|
#pragma option -a- /* Assume byte packing throughout */
|
|
#pragma warn -bbf /* Turn off warning about bitfields */
|
|
#endif /* RC_INVOKED */
|
|
|
|
#ifndef __WINDOWS_H
|
|
#include <windows.h> /* <windows.h> must be included */
|
|
#endif /* __WINDOWS_H */
|
|
|
|
#ifndef RC_INVOKED
|
|
#pragma option -a- /* Assume byte packing throughout */
|
|
#pragma warn -bbf /* Turn off warning about bitfields */
|
|
#endif /* RC_INVOKED */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" { /* Assume C declarations for C++ */
|
|
#endif /* __cplusplus */
|
|
|
|
/* DDE window messages */
|
|
|
|
#define WM_DDE_FIRST 0x03E0
|
|
#define WM_DDE_INITIATE (WM_DDE_FIRST)
|
|
#define WM_DDE_TERMINATE (WM_DDE_FIRST+1)
|
|
#define WM_DDE_ADVISE (WM_DDE_FIRST+2)
|
|
#define WM_DDE_UNADVISE (WM_DDE_FIRST+3)
|
|
#define WM_DDE_ACK (WM_DDE_FIRST+4)
|
|
#define WM_DDE_DATA (WM_DDE_FIRST+5)
|
|
#define WM_DDE_REQUEST (WM_DDE_FIRST+6)
|
|
#define WM_DDE_POKE (WM_DDE_FIRST+7)
|
|
#define WM_DDE_EXECUTE (WM_DDE_FIRST+8)
|
|
#define WM_DDE_LAST (WM_DDE_FIRST+8)
|
|
|
|
/****************************************************************************\
|
|
* DDEACK structure
|
|
*
|
|
* Structure of wStatus (LOWORD(lParam)) in WM_DDE_ACK message
|
|
* sent in response to a WM_DDE_DATA, WM_DDE_REQUEST, WM_DDE_POKE,
|
|
* WM_DDE_ADVISE, or WM_DDE_UNADVISE message.
|
|
*
|
|
\****************************************************************************/
|
|
|
|
typedef struct tagDDEACK
|
|
{
|
|
WORD bAppReturnCode:8,
|
|
reserved:6,
|
|
fBusy:1,
|
|
fAck:1;
|
|
} DDEACK;
|
|
|
|
/****************************************************************************\
|
|
* DDEADVISE structure
|
|
*
|
|
* WM_DDE_ADVISE parameter structure for hOptions (LOWORD(lParam))
|
|
*
|
|
\****************************************************************************/
|
|
|
|
typedef struct tagDDEADVISE
|
|
{
|
|
WORD reserved:14,
|
|
fDeferUpd:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
} DDEADVISE;
|
|
|
|
/****************************************************************************\
|
|
* DDEDATA structure
|
|
*
|
|
* WM_DDE_DATA parameter structure for hData (LOWORD(lParam)).
|
|
* The actual size of this structure depends on the size of
|
|
* the Value array.
|
|
*
|
|
\****************************************************************************/
|
|
|
|
typedef struct tagDDEDATA
|
|
{
|
|
WORD unused:12,
|
|
fResponse:1,
|
|
fRelease:1,
|
|
reserved:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
BYTE Value[1];
|
|
} DDEDATA;
|
|
|
|
|
|
/****************************************************************************\
|
|
* DDEPOKE structure
|
|
*
|
|
* WM_DDE_POKE parameter structure for hData (LOWORD(lParam)).
|
|
* The actual size of this structure depends on the size of
|
|
* the Value array.
|
|
*
|
|
\****************************************************************************/
|
|
|
|
typedef struct tagDDEPOKE
|
|
{
|
|
WORD unused:13, /* Earlier versions of DDE.H incorrectly */
|
|
/* 12 unused bits. */
|
|
fRelease:1,
|
|
fReserved:2;
|
|
short cfFormat;
|
|
BYTE Value[1]; /* This member was named rgb[1] in previous */
|
|
/* versions of DDE.H */
|
|
|
|
} DDEPOKE;
|
|
|
|
/****************************************************************************\
|
|
* The following typedef's were used in previous versions of the Windows SDK.
|
|
* They are still valid. The above typedef's define exactly the same structures
|
|
* as those below. The above typedef names are recommended, however, as they
|
|
* are more meaningful.
|
|
*
|
|
* Note that the DDEPOKE structure typedef'ed in earlier versions of DDE.H did
|
|
* not correctly define the bit positions.
|
|
\****************************************************************************/
|
|
|
|
typedef struct tagDDELN
|
|
{
|
|
WORD unused:13,
|
|
fRelease:1,
|
|
fDeferUpd:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
} DDELN;
|
|
|
|
typedef struct tagDDEUP
|
|
{
|
|
WORD unused:12,
|
|
fAck:1,
|
|
fRelease:1,
|
|
fReserved:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
BYTE rgb[1];
|
|
} DDEUP;
|
|
|
|
#ifdef __cplusplus
|
|
} /* End of extern "C" { */
|
|
#endif /* __cplusplus */
|
|
|
|
#ifndef RC_INVOKED
|
|
#pragma option -a. /* Revert to default packing */
|
|
#pragma warn .bbf /* Revert to default warning about bitfields */
|
|
#endif /* RC_INVOKED */
|
|
|
|
#endif /* __DDE_H */
|
|
|
|
|
|
#else /* defined __FLAT__ */
|
|
/*****************************************************************************\
|
|
* *
|
|
* dde.h - Dynamic Data Exchange structures and definitions *
|
|
* *
|
|
* Copyright (c) 1993-1995, Microsoft Corp. All rights reserved *
|
|
* *
|
|
\*****************************************************************************/
|
|
#ifndef _DDEHEADER_INCLUDED_
|
|
#define _DDEHEADER_INCLUDED_
|
|
|
|
#ifndef _WINDEF_
|
|
#include <windef.h>
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* DDE window messages */
|
|
|
|
#define WM_DDE_FIRST 0x03E0
|
|
#define WM_DDE_INITIATE (WM_DDE_FIRST)
|
|
#define WM_DDE_TERMINATE (WM_DDE_FIRST+1)
|
|
#define WM_DDE_ADVISE (WM_DDE_FIRST+2)
|
|
#define WM_DDE_UNADVISE (WM_DDE_FIRST+3)
|
|
#define WM_DDE_ACK (WM_DDE_FIRST+4)
|
|
#define WM_DDE_DATA (WM_DDE_FIRST+5)
|
|
#define WM_DDE_REQUEST (WM_DDE_FIRST+6)
|
|
#define WM_DDE_POKE (WM_DDE_FIRST+7)
|
|
#define WM_DDE_EXECUTE (WM_DDE_FIRST+8)
|
|
#define WM_DDE_LAST (WM_DDE_FIRST+8)
|
|
|
|
#if !defined(RC_INVOKED)
|
|
#pragma warn -bbf
|
|
#endif
|
|
|
|
/*----------------------------------------------------------------------------
|
|
| DDEACK structure
|
|
|
|
|
| Structure of wStatus (LOWORD(lParam)) in WM_DDE_ACK message
|
|
| sent in response to a WM_DDE_DATA, WM_DDE_REQUEST, WM_DDE_POKE,
|
|
| WM_DDE_ADVISE, or WM_DDE_UNADVISE message.
|
|
|
|
|
----------------------------------------------------------------------------*/
|
|
|
|
typedef struct {
|
|
unsigned short bAppReturnCode:8,
|
|
reserved:6,
|
|
fBusy:1,
|
|
fAck:1;
|
|
} DDEACK;
|
|
|
|
|
|
/*----------------------------------------------------------------------------
|
|
| DDEADVISE structure
|
|
|
|
|
| WM_DDE_ADVISE parameter structure for hOptions (LOWORD(lParam))
|
|
|
|
|
----------------------------------------------------------------------------*/
|
|
|
|
typedef struct {
|
|
unsigned short reserved:14,
|
|
fDeferUpd:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
} DDEADVISE;
|
|
|
|
|
|
/*----------------------------------------------------------------------------
|
|
| DDEDATA structure
|
|
|
|
|
| WM_DDE_DATA parameter structure for hData (LOWORD(lParam)).
|
|
| The actual size of this structure depends on the size of
|
|
| the Value array.
|
|
|
|
|
----------------------------------------------------------------------------*/
|
|
|
|
typedef struct {
|
|
unsigned short unused:12,
|
|
fResponse:1,
|
|
fRelease:1,
|
|
reserved:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
BYTE Value[1];
|
|
} DDEDATA;
|
|
|
|
|
|
/*----------------------------------------------------------------------------
|
|
| DDEPOKE structure
|
|
|
|
|
| WM_DDE_POKE parameter structure for hData (LOWORD(lParam)).
|
|
| The actual size of this structure depends on the size of
|
|
| the Value array.
|
|
|
|
|
----------------------------------------------------------------------------*/
|
|
|
|
typedef struct {
|
|
unsigned short unused:13, /* Earlier versions of DDE.H incorrectly */
|
|
/* 12 unused bits. */
|
|
fRelease:1,
|
|
fReserved:2;
|
|
short cfFormat;
|
|
BYTE Value[1]; /* This member was named rgb[1] in previous */
|
|
/* versions of DDE.H */
|
|
|
|
} DDEPOKE;
|
|
|
|
/*----------------------------------------------------------------------------
|
|
The following typedef's were used in previous versions of the Windows SDK.
|
|
They are still valid. The above typedef's define exactly the same structures
|
|
as those below. The above typedef names are recommended, however, as they
|
|
are more meaningful.
|
|
|
|
Note that the DDEPOKE structure typedef'ed in earlier versions of DDE.H did
|
|
not correctly define the bit positions.
|
|
----------------------------------------------------------------------------*/
|
|
|
|
typedef struct {
|
|
unsigned short unused:13,
|
|
fRelease:1,
|
|
fDeferUpd:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
} DDELN;
|
|
|
|
typedef struct {
|
|
unsigned short unused:12,
|
|
fAck:1,
|
|
fRelease:1,
|
|
fReserved:1,
|
|
fAckReq:1;
|
|
short cfFormat;
|
|
BYTE rgb[1];
|
|
} DDEUP;
|
|
|
|
|
|
#if !defined(RC_INVOKED)
|
|
#pragma warn .bbf
|
|
#endif
|
|
|
|
/*
|
|
* DDE SECURITY
|
|
*/
|
|
|
|
BOOL
|
|
WINAPI
|
|
DdeSetQualityOfService(
|
|
HWND hwndClient,
|
|
CONST SECURITY_QUALITY_OF_SERVICE *pqosNew,
|
|
PSECURITY_QUALITY_OF_SERVICE pqosPrev);
|
|
|
|
BOOL
|
|
WINAPI
|
|
ImpersonateDdeClientWindow(
|
|
HWND hWndClient,
|
|
HWND hWndServer);
|
|
|
|
/*
|
|
* DDE message packing APIs
|
|
*/
|
|
LONG APIENTRY PackDDElParam(UINT msg, UINT uiLo, UINT uiHi);
|
|
BOOL APIENTRY UnpackDDElParam(UINT msg, LONG lParam, PUINT puiLo, PUINT puiHi);
|
|
BOOL APIENTRY FreeDDElParam(UINT msg, LONG lParam);
|
|
LONG APIENTRY ReuseDDElParam(LONG lParam, UINT msgIn, UINT msgOut, UINT uiLo, UINT uiHi);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif // _DDEHEADER_INCLUDED_
|
|
|
|
|
|
#endif /* __FLAT__ */
|