UserExit

Restriction: The UserExit parameter is only supported when debugging on OS/2.

@ITRAPPER; keyword, values: UserExit DLL_NAME

Use the UserExit parameter to specify a user exit DLL to be called at the start and end of each dump. The DLL may export either or both of the functions listed below. The functions are called by ordinal, and the actual function names are irrelevant.

Ordinal 1:

void _System startdump(const char* exename, unsigned long PID);

This function, if you provide it, is called at the start of the process dump. Use it to add additional process logging and control. The function parameters are:

exename
The fully qualified name of the executable that has trapped
PID
The process ID of the executable that has trapped

Ordinal 2:

void _System enddump(unsigned long PID);

This function, if you provide it, is called at the end of the process dump. Use it to add additional process logging and control. The function parameter, PID, is the process ID of the executable that has trapped.