|
|
PROG |
| 22 Haz 2001 | FIND PROCESS by NAME | VC++ Articels |
|
The routine
FIND_PROC_BY_NAME routine lets you check whether a particular process (e.g. notepad.exe)
is currently running in memory or not. The routine is
available as part of the C++ source file EXAM38.CPP. The routine has the following calling
parameters: int
FIND_PROC_BY_NAME(char *) where the process
name is supplied as a zero-terminated C char string and it returns an integer completion
code. The return value is
interpreted as follows: 0 Specified process is not in memory 1 Process is currently in memory A value other 0 or
1 indicates an error condition, check the source code for details. You can download
the file in ZIP format by clicking on the following link. Download Exam38.zip
(3 kB, last modified: 12/29/2000) This works for
Microsoft Windows 95/98/ME/NT/2000. I have tested with Visual C++ v6.0 but it should work
with other versions also. Please let me know of exceptions. After downloading,
unzip the file Exam38.cpp into any folder. It contains a short console mode program which
demonstrates how to call FIND_PROC_BY_NAME to find the NotePad program. |
|
|
|
home | about me | links | projects | clean energy | programming | |