DosProfile

Prototype
APIRET APIENTRY Dos32Profile ( ULONG func, PID pid, PRFCMD *profcmd, PRFRET *profret ) ;

Linkage Definition
IMPORTS Dos32Profile = DOSCALLS.377

Parameters

 * ULONG func:Function to perform. See notes.
 * PID pid:Process ID to be profiled. Zero selects the kernel.
 * PRFCMD *profcmd:Address of command buffer. See notes.
 * PRFRET *profret:Address of results buffer. See notes.

Return Codes
0 NO ERROR - Ok. 8 NOT_ENOUGH_MEMORY - Couldn't allocate profile structures. 87 INVALID_PARAMETER - Some parameter not ok. 111 BUFFER_OVERFLOW - Not enough size in return buffer. 115 PROTECTION_VIOLATION - Invalid return buffer data. 126 MOD_NOT_FOUND - Requested module data not available. 303 INVALID_PROCID - Parameter 2 is not a valid PID. 328 SYS_INTERNAL - Profile data structure corrupted. 543 PRF_NOT_INITIALIZED - Profiling was not initialized. 544 PRF_ALREADY_INITIALIZED - Profiling is already initialized. 545 PRF_NOT_STARTED - Cannot stop profiling without start. 546 PRF_ALREADY_STARTED - Profiling is already started. 547 PRF_TIMER_OUT_OF_RANGE - Invalid timer frequency. 548 PRF_TIMER_RESET - Re-initialized with different timer.