Group: Process and Thread - Library: kernel32
Start an executable from VFP application by using the CreateProcess
Terminating all running applications from a VFP program
Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)
How to prevent users from accessing the Windows Desktop and from switching to other applications
BOOL TerminateProcess(
HANDLE hProcess, // handle to the process
UINT uExitCode // exit code for the process
); DECLARE INTEGER TerminateProcess IN kernel32;
INTEGER hProcess,;
INTEGER uExitCode hProcess [in] Handle to the process to terminate.
uExitCode [in] Specifies the exit code for the process and for all threads terminated as a result of this call.
If the function succeeds, the return value is nonzero.
Home