Changes between Version 1 and Version 2 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Process/GetProcessIDExcludeSelf


Ignore:
Timestamp:
08/20/10 16:18:59 (14 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/ApplicationLibraries/lib825ev/Process/GetProcessIDExcludeSelf

    v1 v2  
    11= GetProcessIDExcludeSelf =
     2Get the process ID of the specified name exluding the running process
     3
     4{{{
     5int GetProcessID(const string& strName);
     6
     7int GetProcessID(const char* pszName);
     8}}}
     9
     10== Parameters ==
     11
     12 * strName - string name of process to check
     13 * pszName - character array name of process to check
     14
     15== Return Value ==
     16
     17 * Returns process ID if a process matches the name is found, 0 if not.
     18
     19== Remarks ==
     20
     21
     22== Examples ==
     23
     24{{{
     25string strProc = "myapp";
     26if(GetProcessIDExcludeSelf(strProc) != 0)
     27{
     28  exit(0);
     29}
     30}}}
     31
     32The example code above can be used at the beginning of a program to prevent running multiple instances.
     33
     34== See Also ==
     35
     36 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/GetProcessID GetProcessID]
     37 * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/Display/KillProcess KillProcess]
     38
     39