Data Transformation Engine Functions and Expressions Reference Guide

Chapter 4 - Implementing a Library EXIT Function Using the EXITPARAM Structure
Functions and Expressions Reference Guide
229
BOOL bCleanup;
int nReturn;
char szErrMsg[100];
char szFile[260];
void FAR * lpMapHandle;
void FAR * lpInternal;
void FAR * lpCmdStruct;
void FAR * lpAdaptParms;
void FAR * lpContext;
void FAR * lpWildcard;
void FAR * lpfnMS;
void FAR * lpMS;
DWORD dwWildcardSize;
LPSTR lpszMapDirectory;
WORD wCardNum;
WORD wCleanupAction;
WORD wScope;
UINT uUnitSize;
BOOL bBurst;
BOOL bFromRule;
BOOL bSource;
DWORD dwRecords;
};
typedef struct tagExitParamStruct EXITPARAM;
typedef struct tagExitParamStruct FAR * LPEXITPARAM;
The engine environment sets up the EXITPARAM structure and the function should
fill in the result. The engine will allocate and free the memory associated with
lpDataToApp. The function must allocate the memory for lpDataFromApp. For
all Windows platforms, use the Windows macro GlobalAllocPtr defined in
windowsx.h. For all other platforms, use the
C-runtime malloc function. The
engine will free this memory.
For use with the an EXIT
function, the components of EXITPARAM are used as
follows:
Component Used as Usage
dwSize
Input
Size (in bytes) of EXITPARAM to assure correct
compatibility
dwToLen
Input
Length (size in bytes) of lpDataToApp
dwFromLen
Output
Length (size in bytes) of
lpDataFromApp
dwMapInstance
Not used
lpv
Not used
LpszCmdLine
Not used
lpDataToApp
Input Data sent to the function. This is the third
parameter of the
EXIT function