DosDumpProcess allows an application:
Syntax
APIRET APIENTRY DosDumpProcess(ULONG Flag, ULONG Drive, PID pid);32-bit code Example using CSet/2
Parameters
Flag
This option is valid only with DDP_PERFORMPROCDUMP. If zero is specified for Pid then the current process is dumped.
Returns.
Return Code.
DosDumpProcess returns the following values:
87
Remarks.
When Process dump is enabled a dump file is written whenever a ring 3 process traps. The file takes a name PDUMP.nnn where nnn is incremented sequentially (staring from 000) for each successive dump.
The directory to which PDUMP.nnn will be written is always the root directory of Drive.
C Language prototype definitions for the DosDumpProcess may be found under RAS API Prototypes.
The content of a Process Dump comprises register information at time of trap, system control blocks (TCB, TSD, PTDA, MTE, SMTE, OTE, VMAR, VMOB, LTD) that describe the state of the process at the time of error, ring 0 and ring 3 stack data for the trapping process.
See the Process Dump Formatter section of the Dump Formatter User Guide for information on formatting Process Dumps.
Note:
DDP_PERFORMPROCDUMP is not available in some early releases of OS/2 V2.11