|
|
1.1 root 1: Sample: Creating and Ending Processes
2:
3: Summary:
4:
5: The PROCESS sample provides a simple interface to the
6: CreateProcess and TerminateProcess functions. In order to
7: create a process the user is presented with a common dialog
8: for selecting a file. In this case, the file must have an
9: extension of .EXE. Processes which are started are
10: presented in a list box. Any of the processes may be
11: selected in the list box and then terminated.
12:
13: Warning: "TerminateProcess is used to cause all of the
14: threads within a process to terminate. While
15: TerminateProcess will cause all threads within a process to
16: terminate, and will cause an application to exit, it does
17: not notify DLLs that the process is attached to that the
18: process is terminating. TerminateProcess is used to
19: unconditionally cause a process to exit. It should only be
20: used in extreme circumstances. The state of global data
21: maintained by DLLs may be compromised if TerminateProcess is
22: used rather than ExitProcess."
23:
24:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.