version 2003
PA_UnfreezeProcess (pNum)
Parameter | Type | Description | |
pNum | long | Process number |
Description
The routine PA_UnfreezeProcess resumes the execution of the process whose process number is pNum, that has been previously paused or delayed by a call to PA_FreezeProcess or PA_PutProcessToSleep.
This routine works like the 4D Command RESUME PROCESS, refer to the 4th Dimension Language Reference manual for more information.
Example
Resume all delayed/paused processes.
#define P_DELAYED ((long) 1) #define P_PAUSED ((long) 5) void ResumeAllProcesses() { char name[256]; long i, state, time; for(i = 1; i <= PA_CountTotalProcess(); i++) { state = 0; PA_GetProcessInfo(i, name, &state, &time); if( (state == P_DELAYED) || (state == P_PAUSED) ) PA_UnfreezeProcess(i); } }
See Also
PA_FreezeProcess, RESUME PROCESS.
Error Handling
Use PA_GetLastError to see if an error occurred