15#define BOP(num) LOBYTE(EMULATOR_BOP), HIBYTE(EMULATOR_BOP), (num)
16#define UnSimulate16(trap) \
18 *(PUSHORT)(trap) = EMULATOR_BOP; \
19 (trap) += sizeof(USHORT); \
20 *(trap) = BOP_UNSIMULATE; \
24#define TRAMPOLINE_SIZE sizeof(ULONGLONG)
_In_ ULONG _In_ ULONG Offset
PULONG MinorVersion OPTIONAL
struct _CALLBACK16 * PCALLBACK16
VOID InitializeContext(IN PCALLBACK16 Context, IN USHORT Segment, IN USHORT Offset)
VOID RunCallback16(IN PCALLBACK16 Context, IN ULONG FarPtr)
ULONG RegisterCallback16(IN ULONG FarPtr, IN LPBYTE CallbackCode, IN SIZE_T CallbackSize, OUT PSIZE_T CodeSize OPTIONAL)
struct _CALLBACK16 CALLBACK16
VOID Call16(IN USHORT Segment, IN USHORT Offset)
VOID InitializeContextEx(IN PCALLBACK16 Context, IN ULONG TrampolineSize, IN USHORT Segment, IN USHORT Offset)