1 #ifndef __WINE_TLHELP32_H
2 #define __WINE_TLHELP32_H
9 * CreateToolhelp32Snapshot
12 #define TH32CS_SNAPHEAPLIST 0x00000001
13 #define TH32CS_SNAPPROCESS 0x00000002
14 #define TH32CS_SNAPTHREAD 0x00000004
15 #define TH32CS_SNAPMODULE 0x00000008
16 #define TH32CS_SNAPALL (TH32CS_SNAPHEAPLIST | TH32CS_SNAPPROCESS | TH32CS_SNAPTHREAD | TH32CS_SNAPMODULE)
17 #define TH32CS_INHERIT 0x80000000
19 HANDLE WINAPI
CreateToolhelp32Snapshot(DWORD
,DWORD
);
22 * thread entry list as created by CreateToolHelp32Snapshot
25 typedef struct tagTHREADENTRY32
30 DWORD th32OwnerProcessID
;
34 } THREADENTRY32
, *PTHREADENTRY32
, *LPTHREADENTRY32
;
36 BOOL WINAPI
Thread32First(HANDLE
,LPTHREADENTRY32
);
37 BOOL WINAPI
Thread32Next(HANDLE
,LPTHREADENTRY32
);
40 * Process entry list as created by CreateToolHelp32Snapshot
43 typedef struct tagPROCESSENTRY32
48 DWORD th32DefaultHeapID
;
51 DWORD th32ParentProcessID
;
54 char szExeFile
[MAX_PATH
];
55 } PROCESSENTRY32
, *PPROCESSENTRY32
, *LPPROCESSENTRY32
;
57 typedef struct tagPROCESSENTRY32W
62 DWORD th32DefaultHeapID
;
65 DWORD th32ParentProcessID
;
68 WCHAR szExeFile
[MAX_PATH
];
69 } PROCESSENTRY32W
, *PPROCESSENTRY32W
, *LPPROCESSENTRY32W
;
71 BOOL WINAPI
Process32First(HANDLE
,LPPROCESSENTRY32
);
72 BOOL WINAPI
Process32FirstW(HANDLE
,LPPROCESSENTRY32W
);
73 BOOL WINAPI
Process32Next(HANDLE
,LPPROCESSENTRY32
);
74 BOOL WINAPI
Process32NextW(HANDLE
,LPPROCESSENTRY32W
);
77 #define Process32First Process32FirstW
78 #define Process32Next Process32NextW
79 #define PROCESSENTRY32 PROCESSENTRY32W
80 #define PPROCESSENTRY32 PPROCESSENTRY32W
81 #define LPPROCESSENTRY32 LPPROCESSENTRY32W
85 * Module entry list as created by CreateToolHelp32Snapshot
88 #define MAX_MODULE_NAME32 255
90 typedef struct tagMODULEENTRY32
100 char szModule
[MAX_MODULE_NAME32
+ 1];
101 char szExePath
[MAX_PATH
];
102 } MODULEENTRY32
, *PMODULEENTRY32
, *LPMODULEENTRY32
;
104 typedef struct tagMODULEENTRY32W
114 WCHAR szModule
[MAX_MODULE_NAME32
+ 1];
115 WCHAR szExePath
[MAX_PATH
];
116 } MODULEENTRY32W
, *PMODULEENTRY32W
, *LPMODULEENTRY32W
;
118 BOOL WINAPI
Module32First(HANDLE
,LPMODULEENTRY32
);
119 BOOL WINAPI
Module32FirstW(HANDLE
,LPMODULEENTRY32W
);
120 BOOL WINAPI
Module32Next(HANDLE
,LPMODULEENTRY32
);
121 BOOL WINAPI
Module32NextW(HANDLE
,LPMODULEENTRY32W
);
124 #define Module32First Module32FirstW
125 #define Module32Next Module32NextW
126 #define MODULEENTRY32 MODULEENTRY32W
127 #define PMODULEENTRY32 PMODULEENTRY32W
128 #define LPMODULEENTRY32 LPMODULEENTRY32W
135 #endif /* __WINE_TLHELP32_H */