Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATDLLInjector::GetProcessId
CATResult CATDLLInjector::GetProcessId ( const CATWChar processName,
CATUInt32 pid,
CATUInt32  procIndex = -1 
) [static]

Retrieves a process id for a process name. If multiple processes matching the name are present, it will return the first one.

Parameters:
processName process name (e.g. Notepad.exe)
pid ref to pid, set on success.
procIndex optional index of process if multiple
Returns:
CATResult CAT_SUCCESS on success. CAT_STAT_MULTIPLE_PROCS if multiple.

Definition at line 143 of file CATDLLInjector.cpp.

References CAT_ERR_ENUM_PROCS, CAT_ERR_INVALID_PARAM, CAT_ERR_NO_MATCHING_PROC, CAT_STAT_MULTIPLE_PROCS, CAT_SUCCESS, CATASSERT, and CATRESULT.

Referenced by GASPilot::OnCommand(), and GASPilot::SteamWatch().


Generated on Mon Feb 11 04:10:27 2008 for Game Accessibility Suite by doxygen 1.5.4