ReactOS  0.4.14-dev-599-g2d4d3f5
tlhelp32.h
Go to the documentation of this file.
1 /*
2  tlhelp32.h - Include file for Tool help functions.
3 
4  Written by Mumit Khan <khan@nanotech.wisc.edu>
5 
6  This file is part of a free library for the Win32 API.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 
12 */
13 #ifndef _TLHELP32_H
14 #define _TLHELP32_H
15 
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19 #define HF32_DEFAULT 1
20 #define HF32_SHARED 2
21 #define LF32_FIXED 0x1
22 #define LF32_FREE 0x2
23 #define LF32_MOVEABLE 0x4
24 #define MAX_MODULE_NAME32 255
25 #define TH32CS_SNAPHEAPLIST 0x1
26 #define TH32CS_SNAPPROCESS 0x2
27 #define TH32CS_SNAPTHREAD 0x4
28 #define TH32CS_SNAPMODULE 0x8
29 #define TH32CS_SNAPALL (TH32CS_SNAPHEAPLIST|TH32CS_SNAPPROCESS|TH32CS_SNAPTHREAD|TH32CS_SNAPMODULE)
30 #define TH32CS_INHERIT 0x80000000
31 typedef struct tagHEAPLIST32 {
37 typedef struct tagHEAPENTRY32 {
48 typedef struct tagPROCESSENTRY32W {
60 typedef struct tagPROCESSENTRY32 {
72 typedef struct tagTHREADENTRY32 {
81 typedef struct tagMODULEENTRY32W {
93 typedef struct tagMODULEENTRY32 {
121 #ifdef UNICODE
122 #define LPMODULEENTRY32 LPMODULEENTRY32W
123 #define LPPROCESSENTRY32 LPPROCESSENTRY32W
124 #define MODULEENTRY32 MODULEENTRY32W
125 #define Module32First Module32FirstW
126 #define Module32Next Module32NextW
127 #define PMODULEENTRY32 PMODULEENTRY32W
128 #define PPROCESSENTRY32 PPROCESSENTRY32W
129 #define PROCESSENTRY32 PROCESSENTRY32W
130 #define Process32First Process32FirstW
131 #define Process32Next Process32NextW
132 #endif /* UNICODE */
133 #ifdef __cplusplus
134 }
135 #endif
136 #endif /* _TLHELP32_H */
137 
HANDLE WINAPI CreateToolhelp32Snapshot(DWORD, DWORD)
Definition: toolhelp.c:1255
BOOL WINAPI Heap32First(LPHEAPENTRY32, DWORD, DWORD)
Definition: toolhelp.c:489
struct tagMODULEENTRY32W * LPMODULEENTRY32W
DWORD cntThreads
Definition: tlhelp32.h:66
DWORD th32ParentProcessID
Definition: tlhelp32.h:67
struct tagHEAPLIST32 * LPHEAPLIST32
struct tagTHREADENTRY32 * PTHREADENTRY32
BOOL WINAPI Process32First(HANDLE, LPPROCESSENTRY32)
Definition: toolhelp.c:951
char szExePath[MAX_PATH]
Definition: tlhelp32.h:103
BYTE * modBaseAddr
Definition: tlhelp32.h:99
BOOL WINAPI Process32FirstW(HANDLE, LPPROCESSENTRY32W)
Definition: toolhelp.c:984
HMODULE hModule
Definition: tlhelp32.h:89
char CHAR
Definition: xmlstorage.h:175
WCHAR szExeFile[MAX_PATH]
Definition: tlhelp32.h:58
CHAR szExeFile[MAX_PATH]
Definition: tlhelp32.h:70
#define MAX_MODULE_NAME32
Definition: tlhelp32.h:24
BOOL WINAPI Heap32Next(LPHEAPENTRY32)
Definition: toolhelp.c:578
struct tagPROCESSENTRY32 * LPPROCESSENTRY32
Definition: toolhelp.c:38
DWORD dwLockCount
Definition: tlhelp32.h:43
struct tagMODULEENTRY32 MODULEENTRY32
DWORD modBaseSize
Definition: tlhelp32.h:88
DWORD dwFlags
Definition: tlhelp32.h:42
BOOL WINAPI Module32FirstW(HANDLE, LPMODULEENTRY32W)
Definition: toolhelp.c:810
BOOL WINAPI Heap32ListFirst(HANDLE, LPHEAPLIST32)
Definition: toolhelp.c:669
DWORD th32ProcessID
Definition: tlhelp32.h:51
char szModule[MAX_MODULE_NAME32+1]
Definition: tlhelp32.h:102
struct tagPROCESSENTRY32W * LPPROCESSENTRY32W
DWORD th32ModuleID
Definition: tlhelp32.h:95
DWORD th32ProcessID
Definition: tlhelp32.h:33
DWORD th32ProcessID
Definition: tlhelp32.h:84
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
DWORD dwResvd
Definition: tlhelp32.h:44
DWORD th32ThreadID
Definition: tlhelp32.h:75
struct tagTHREADENTRY32 * LPTHREADENTRY32
Definition: toolhelp.c:40
BYTE * modBaseAddr
Definition: tlhelp32.h:87
DWORD th32ModuleID
Definition: tlhelp32.h:53
BOOL WINAPI Module32Next(HANDLE, LPMODULEENTRY32)
Definition: toolhelp.c:864
DWORD GlblcntUsage
Definition: tlhelp32.h:85
BOOL WINAPI Toolhelp32ReadProcessMemory(DWORD, LPCVOID, LPVOID, SIZE_T, SIZE_T *)
Definition: toolhelp.c:1235
DWORD dwSize
Definition: tlhelp32.h:32
DWORD ProccntUsage
Definition: tlhelp32.h:86
DWORD ProccntUsage
Definition: tlhelp32.h:98
DWORD cntUsage
Definition: tlhelp32.h:74
DWORD th32ModuleID
Definition: tlhelp32.h:83
__wchar_t WCHAR
Definition: xmlstorage.h:180
struct tagHEAPENTRY32 * LPHEAPENTRY32
DWORD th32HeapID
Definition: tlhelp32.h:46
#define MAX_PATH
Definition: compat.h:26
#define WINAPI
Definition: msvc.h:6
DWORD dwBlockSize
Definition: tlhelp32.h:41
struct tagPROCESSENTRY32W * PPROCESSENTRY32W
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI Module32First(HANDLE, LPMODULEENTRY32)
Definition: toolhelp.c:777
BOOL WINAPI Thread32Next(HANDLE, LPTHREADENTRY32)
Definition: toolhelp.c:1181
DWORD th32ProcessID
Definition: tlhelp32.h:63
DWORD th32OwnerProcessID
Definition: tlhelp32.h:76
struct tagPROCESSENTRY32W PROCESSENTRY32W
DWORD th32DefaultHeapID
Definition: tlhelp32.h:64
BOOL WINAPI Module32NextW(HANDLE, LPMODULEENTRY32W)
Definition: toolhelp.c:897
DWORD th32ModuleID
Definition: tlhelp32.h:65
struct tagHEAPENTRY32 HEAPENTRY32
BOOL WINAPI Heap32ListNext(HANDLE, LPHEAPLIST32)
Definition: toolhelp.c:723
unsigned char BYTE
Definition: mem.h:68
struct tagPROCESSENTRY32 * PPROCESSENTRY32
DWORD dwSize
Definition: tlhelp32.h:38
BOOL WINAPI Process32NextW(HANDLE, LPPROCESSENTRY32W)
Definition: toolhelp.c:1073
DWORD dwFlags
Definition: tlhelp32.h:35
HMODULE hModule
Definition: tlhelp32.h:101
ULONG_PTR SIZE_T
Definition: typedefs.h:78
DWORD th32DefaultHeapID
Definition: tlhelp32.h:52
DWORD GlblcntUsage
Definition: tlhelp32.h:97
HANDLE hHandle
Definition: tlhelp32.h:39
struct tagHEAPENTRY32 * PHEAPENTRY32
BOOL WINAPI Process32Next(HANDLE, LPPROCESSENTRY32)
Definition: toolhelp.c:1040
WCHAR szModule[MAX_MODULE_NAME32+1]
Definition: tlhelp32.h:90
struct tagMODULEENTRY32 * LPMODULEENTRY32
Definition: toolhelp.c:36
DWORD th32HeapID
Definition: tlhelp32.h:34
DWORD dwAddress
Definition: tlhelp32.h:40
struct tagPROCESSENTRY32 PROCESSENTRY32
CONST void * LPCVOID
Definition: windef.h:191
LONG pcPriClassBase
Definition: tlhelp32.h:68
BOOL WINAPI Thread32First(HANDLE, LPTHREADENTRY32)
Definition: toolhelp.c:1127
struct tagMODULEENTRY32W MODULEENTRY32W
struct tagHEAPLIST32 HEAPLIST32
WCHAR szExePath[MAX_PATH]
Definition: tlhelp32.h:91
struct tagMODULEENTRY32 * PMODULEENTRY32
DWORD th32ParentProcessID
Definition: tlhelp32.h:55
DWORD th32ProcessID
Definition: tlhelp32.h:45
struct tagMODULEENTRY32W * PMODULEENTRY32W
DWORD th32ProcessID
Definition: tlhelp32.h:96
struct tagTHREADENTRY32 THREADENTRY32
struct tagHEAPLIST32 * PHEAPLIST32
DWORD modBaseSize
Definition: tlhelp32.h:100