E:/PROJECTS/cvsed/mixed/VIRTUA~1/kdclient/findproc.cpp File Reference

Contains functions for enumerating running processes. More...

#include "stdafx.h"
#include <tlhelp32.h>
#include "findproc.h"

Include dependency graph for findproc.cpp:

Go to the source code of this file.

Defines

#define CloseToolhelp32Snapshot   CloseHandle

Functions

int FindProcessByNames (HANDLE hSnapshot, TCHAR **pszNames, unsigned NameCount, bool RestartSearch, unsigned *pMatchedIndex)
int FindProcessByName (HANDLE hSnapshot, TCHAR *pszName, bool RestartSearch)
int FindProcessByName (TCHAR *pszName)
LPVOID GetModuleFromProcess (int PID, TCHAR *pszModuleName)
int GetFirstThreadID (int PID)


Detailed Description

Contains functions for enumerating running processes.

Author:
Ivan Shcherbakov (Bazis)
Id
findproc.cpp,v 1.2 2009/06/07 15:31:55 Administrator Exp

Definition in file findproc.cpp.


Define Documentation

#define CloseToolhelp32Snapshot   CloseHandle

Definition at line 14 of file findproc.cpp.


Function Documentation

int FindProcessByName ( TCHAR *  pszName  ) 

Definition at line 50 of file findproc.cpp.

Here is the call graph for this function:

int FindProcessByName ( HANDLE  hSnapshot,
TCHAR *  pszName,
bool  RestartSearch 
)

Definition at line 44 of file findproc.cpp.

Here is the call graph for this function:

int FindProcessByNames ( HANDLE  hSnapshot,
TCHAR **  pszNames,
unsigned  NameCount,
bool  RestartSearch,
unsigned *  pMatchedIndex 
)

Definition at line 17 of file findproc.cpp.

int GetFirstThreadID ( int  PID  ) 

Definition at line 82 of file findproc.cpp.

LPVOID GetModuleFromProcess ( int  PID,
TCHAR *  pszModuleName 
)

Definition at line 58 of file findproc.cpp.