Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

process.h File Reference

#include "precomp.h"
#include <imagehlp.h>
#include <wdbgexts.h>
#include <ntsdexts.h>
#include <stdexts.h>

Go to the source code of this file.

Defines

#define GETOUTPUTDATA(pEProcess, field, pvData, cbData)

Functions

PVOID GetEProcessData (PEPROCESS pEProcess, UINT iData, PVOID pBuffer)


Define Documentation

#define GETOUTPUTDATA pEProcess,
field,
pvData,
cbData   ) 
 

Value:

pvData = (PBYTE)pEProcess + FIELD_OFFSET(EPROCESS, field); \ cbData = sizeof(((PEPROCESS)0)->field);

Definition at line 20 of file process.h.

Referenced by GetEProcessData().


Function Documentation

PVOID GetEProcessData PEPROCESS  pEProcess,
UINT  iData,
PVOID  pBuffer
 

Definition at line 24 of file process.h.

References GETOUTPUTDATA, NULL, PROCESS_IMAGEFILENAME, PROCESS_PRIORITYCLASS, PROCESS_PROCESSHEAD, PROCESS_PROCESSID, PROCESS_PROCESSLINK, PROCESS_THREADLIST, PROCESS_WIN32PROCESS, and _EPROCESS::ThreadListHead.

00028 { 00029 PVOID pvData; 00030 ULONG cbData; 00031 00032 switch (iData) { 00033 case PROCESS_PROCESSLINK: 00034 GETOUTPUTDATA(pEProcess, ActiveProcessLinks, pvData, cbData); 00035 break; 00036 case PROCESS_WIN32PROCESS: 00037 GETOUTPUTDATA(pEProcess, Win32Process, pvData, cbData); 00038 break; 00039 case PROCESS_IMAGEFILENAME: 00040 GETOUTPUTDATA(pEProcess, ImageFileName, pvData, cbData); 00041 break; 00042 case PROCESS_THREADLIST: 00043 GETOUTPUTDATA(pEProcess, Pcb.ThreadListHead, pvData, cbData); 00044 break; 00045 case PROCESS_PRIORITYCLASS: 00046 GETOUTPUTDATA(pEProcess, PriorityClass, pvData, cbData); 00047 break; 00048 case PROCESS_PROCESSHEAD: 00049 return CONTAINING_RECORD(pEProcess, EPROCESS, ActiveProcessLinks); 00050 case PROCESS_PROCESSID: 00051 GETOUTPUTDATA(pEProcess, UniqueProcessId, pvData, cbData); 00052 break; 00053 default: 00054 return NULL; 00055 } 00056 if (!tryMoveBlock(pBuffer, pvData, cbData)) 00057 return NULL; 00058 return pvData; 00059 }


Generated on Sat May 15 19:45:18 2004 for test by doxygen 1.3.7