ReactOS 0.4.16-dev-329-g9223134
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
17extern "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
31typedef struct tagHEAPLIST32 {
37typedef struct tagHEAPENTRY32 {
48typedef struct tagPROCESSENTRY32W {
60typedef struct tagPROCESSENTRY32 {
72typedef struct tagTHREADENTRY32 {
81typedef struct tagMODULEENTRY32W {
93typedef 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
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
long LONG
Definition: pedump.c:60
DWORD th32ProcessID
Definition: tlhelp32.h:45
DWORD dwBlockSize
Definition: tlhelp32.h:41
DWORD dwAddress
Definition: tlhelp32.h:40
DWORD dwLockCount
Definition: tlhelp32.h:43
DWORD th32HeapID
Definition: tlhelp32.h:46
DWORD dwResvd
Definition: tlhelp32.h:44
DWORD dwSize
Definition: tlhelp32.h:38
DWORD dwFlags
Definition: tlhelp32.h:42
HANDLE hHandle
Definition: tlhelp32.h:39
DWORD dwFlags
Definition: tlhelp32.h:35
DWORD th32HeapID
Definition: tlhelp32.h:34
DWORD dwSize
Definition: tlhelp32.h:32
DWORD th32ProcessID
Definition: tlhelp32.h:33
DWORD th32ProcessID
Definition: tlhelp32.h:84
WCHAR szModule[MAX_MODULE_NAME32+1]
Definition: tlhelp32.h:90
BYTE * modBaseAddr
Definition: tlhelp32.h:87
WCHAR szExePath[MAX_PATH]
Definition: tlhelp32.h:91
DWORD th32ModuleID
Definition: tlhelp32.h:83
DWORD ProccntUsage
Definition: tlhelp32.h:86
HMODULE hModule
Definition: tlhelp32.h:89
DWORD modBaseSize
Definition: tlhelp32.h:88
DWORD GlblcntUsage
Definition: tlhelp32.h:85
BYTE * modBaseAddr
Definition: tlhelp32.h:99
HMODULE hModule
Definition: tlhelp32.h:101
DWORD ProccntUsage
Definition: tlhelp32.h:98
char szModule[MAX_MODULE_NAME32+1]
Definition: tlhelp32.h:102
DWORD th32ModuleID
Definition: tlhelp32.h:95
DWORD th32ProcessID
Definition: tlhelp32.h:96
DWORD GlblcntUsage
Definition: tlhelp32.h:97
DWORD modBaseSize
Definition: tlhelp32.h:100
char szExePath[MAX_PATH]
Definition: tlhelp32.h:103
DWORD th32ModuleID
Definition: tlhelp32.h:53
DWORD th32ParentProcessID
Definition: tlhelp32.h:55
DWORD th32DefaultHeapID
Definition: tlhelp32.h:52
WCHAR szExeFile[MAX_PATH]
Definition: tlhelp32.h:58
DWORD th32ProcessID
Definition: tlhelp32.h:51
DWORD th32ParentProcessID
Definition: tlhelp32.h:67
DWORD th32DefaultHeapID
Definition: tlhelp32.h:64
CHAR szExeFile[MAX_PATH]
Definition: tlhelp32.h:70
DWORD th32ModuleID
Definition: tlhelp32.h:65
LONG pcPriClassBase
Definition: tlhelp32.h:68
DWORD cntThreads
Definition: tlhelp32.h:66
DWORD th32ProcessID
Definition: tlhelp32.h:63
DWORD th32ThreadID
Definition: tlhelp32.h:75
DWORD cntUsage
Definition: tlhelp32.h:74
DWORD th32OwnerProcessID
Definition: tlhelp32.h:76
BOOL WINAPI Module32First(HANDLE, LPMODULEENTRY32)
Definition: toolhelp.c:777
BOOL WINAPI Module32Next(HANDLE, LPMODULEENTRY32)
Definition: toolhelp.c:864
BOOL WINAPI Process32NextW(HANDLE, LPPROCESSENTRY32W)
Definition: toolhelp.c:1073
struct tagMODULEENTRY32 * PMODULEENTRY32
struct tagHEAPENTRY32 * PHEAPENTRY32
BOOL WINAPI Toolhelp32ReadProcessMemory(DWORD, LPCVOID, LPVOID, SIZE_T, SIZE_T *)
Definition: toolhelp.c:1235
struct tagTHREADENTRY32 * LPTHREADENTRY32
Definition: toolhelp.c:40
BOOL WINAPI Heap32ListFirst(HANDLE, LPHEAPLIST32)
Definition: toolhelp.c:669
struct tagMODULEENTRY32W MODULEENTRY32W
struct tagPROCESSENTRY32 PROCESSENTRY32
BOOL WINAPI Process32FirstW(HANDLE, LPPROCESSENTRY32W)
Definition: toolhelp.c:984
struct tagHEAPENTRY32 * LPHEAPENTRY32
struct tagMODULEENTRY32 * LPMODULEENTRY32
Definition: toolhelp.c:36
BOOL WINAPI Heap32Next(LPHEAPENTRY32)
Definition: toolhelp.c:578
BOOL WINAPI Module32NextW(HANDLE, LPMODULEENTRY32W)
Definition: toolhelp.c:897
struct tagPROCESSENTRY32 * PPROCESSENTRY32
BOOL WINAPI Thread32First(HANDLE, LPTHREADENTRY32)
Definition: toolhelp.c:1127
BOOL WINAPI Process32First(HANDLE, LPPROCESSENTRY32)
Definition: toolhelp.c:951
BOOL WINAPI Heap32ListNext(HANDLE, LPHEAPLIST32)
Definition: toolhelp.c:723
HANDLE WINAPI CreateToolhelp32Snapshot(DWORD, DWORD)
Definition: toolhelp.c:1255
struct tagHEAPENTRY32 HEAPENTRY32
struct tagPROCESSENTRY32W * PPROCESSENTRY32W
BOOL WINAPI Thread32Next(HANDLE, LPTHREADENTRY32)
Definition: toolhelp.c:1181
struct tagHEAPLIST32 * LPHEAPLIST32
struct tagPROCESSENTRY32W * LPPROCESSENTRY32W
struct tagMODULEENTRY32W * PMODULEENTRY32W
struct tagHEAPLIST32 * PHEAPLIST32
struct tagMODULEENTRY32W * LPMODULEENTRY32W
BOOL WINAPI Process32Next(HANDLE, LPPROCESSENTRY32)
Definition: toolhelp.c:1040
struct tagMODULEENTRY32 MODULEENTRY32
struct tagHEAPLIST32 HEAPLIST32
BOOL WINAPI Heap32First(LPHEAPENTRY32, DWORD, DWORD)
Definition: toolhelp.c:489
BOOL WINAPI Module32FirstW(HANDLE, LPMODULEENTRY32W)
Definition: toolhelp.c:810
#define MAX_MODULE_NAME32
Definition: tlhelp32.h:24
struct tagTHREADENTRY32 THREADENTRY32
struct tagPROCESSENTRY32 * LPPROCESSENTRY32
Definition: toolhelp.c:38
struct tagTHREADENTRY32 * PTHREADENTRY32
struct tagPROCESSENTRY32W PROCESSENTRY32W
ULONG_PTR SIZE_T
Definition: typedefs.h:80
CONST void * LPCVOID
Definition: windef.h:191
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180
char CHAR
Definition: xmlstorage.h:175
unsigned char BYTE
Definition: xxhash.c:193