Files
TeslaRel410/BORLAND/BC45/INCLUDE/MAPIHOOK.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

91 lines
2.7 KiB
C++

/*
* M A P I H O O K . H
*
* Defines the SpoolerMsgHook provider interface.
*
* Copyright 1993-1995 Microsoft Corporation. All Rights Reserved.
*/
#ifndef MAPIHOOK_H
#define MAPIHOOK_H
#ifndef MAPIDEFS_H
#include <mapidefs.h>
#include <mapicode.h>
#include <mapiguid.h>
#include <mapitags.h>
#endif
#ifdef __BORLANDC__
#include <pshpack8.h>
#endif
#ifndef BEGIN_INTERFACE
#define BEGIN_INTERFACE
#endif
#ifdef __cplusplus
extern "C" {
#endif
/* ISpoolerHook Interface ------------------------------------------------ */
/* MsgHooks */
#define HOOK_DELETE ((ULONG) 0x00000001)
#define HOOK_CANCEL ((ULONG) 0x00000002)
#define MAPI_ISPOOLERHOOK_METHODS(IPURE) \
MAPIMETHOD(InboundMsgHook) \
(THIS_ LPMESSAGE lpMessage, \
LPMAPIFOLDER lpFolder, \
LPMDB lpMDB, \
ULONG FAR * lpulFlags, \
ULONG FAR * lpcbEntryID, \
LPBYTE FAR * lppEntryID) IPURE; \
MAPIMETHOD(OutboundMsgHook) \
(THIS_ LPMESSAGE lpMessage, \
LPMAPIFOLDER lpFolder, \
LPMDB lpMDB, \
ULONG FAR * lpulFlags, \
ULONG FAR * lpcbEntryID, \
LPBYTE FAR * lppEntryID) IPURE; \
#undef INTERFACE
#define INTERFACE ISpoolerHook
DECLARE_MAPI_INTERFACE_(ISpoolerHook, IUnknown)
{
BEGIN_INTERFACE
MAPI_IUNKNOWN_METHODS(PURE)
MAPI_ISPOOLERHOOK_METHODS(PURE)
};
DECLARE_MAPI_INTERFACE_PTR(ISpoolerHook, LPSPOOLERHOOK);
/* Hook Provider Entry Point */
#define HOOK_INBOUND ((ULONG) 0x00000200)
#define HOOK_OUTBOUND ((ULONG) 0x00000400)
typedef HRESULT (STDMAPIINITCALLTYPE HPPROVIDERINIT)(
LPMAPISESSION lpSession,
HINSTANCE hInstance,
LPALLOCATEBUFFER lpAllocateBuffer,
LPALLOCATEMORE lpAllocateMore,
LPFREEBUFFER lpFreeBuffer,
LPMAPIUID lpSectionUID,
ULONG ulFlags,
LPSPOOLERHOOK FAR * lppSpoolerHook
);
HPPROVIDERINIT HPProviderInit;
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#ifdef __BORLANDC__
#include <poppack.h>
#endif
#endif /* MAPIHOOK_H */