From: Kevin O'C. <ke...@ko...> - 2006-11-26 23:13:26
|
The definition of MODULEENTRY32 is not correct for CE. I'm also adding a new #define. The structure definition comes from: http://msdn2.microsoft.com/en-us/library/ms886756.aspx The #define name comes from: http://msdn.microsoft.com/library/en-us/mobilesdk5/html/wce50lrfCreateToolhelp32Snapshot.asp?frame=true The value comes from a google code search (newlib has the value). 2006-11-26 Kevin O'Connor <ke...@ko...> * include/tlhelp32.h (MODULEENTRY32): szModule is of MAX_PATH size on CE. * include/tlhelp32.h: define TH32CS_GETALLMODS. Index: src/w32api/include/tlhelp32.h =================================================================== --- src/w32api/include/tlhelp32.h (revision 824) +++ src/w32api/include/tlhelp32.h (working copy) @@ -29,6 +29,7 @@ #define TH32CS_SNAPPROCESS 0x2 #define TH32CS_SNAPTHREAD 0x4 #define TH32CS_SNAPMODULE 0x8 +#define TH32CS_GETALLMODS 0x80000000 #define TH32CS_SNAPALL (TH32CS_SNAPHEAPLIST|TH32CS_SNAPPROCESS|TH32CS_SNAPTHREAD|TH32CS_SNAPMODULE) #define TH32CS_INHERIT 0x80000000 typedef struct tagHEAPLIST32 { @@ -113,7 +114,7 @@ DWORD modBaseSize; HMODULE hModule; #ifdef _WIN32_WCE - WCHAR szModule[MAX_MODULE_NAME32 + 1]; + WCHAR szModule[MAX_PATH]; WCHAR szExePath[MAX_PATH]; DWORD dwFlags; #else |