From: <dan...@us...> - 2006-11-27 16:36:26
|
Revision: 825 http://svn.sourceforge.net/cegcc/?rev=825&view=rev Author: dannybackx Date: 2006-11-27 08:36:20 -0800 (Mon, 27 Nov 2006) Log Message: ----------- Submission from Kevin O'Connor on the mailing list. 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). Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce trunk/cegcc/src/w32api/include/tlhelp32.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-26 16:57:35 UTC (rev 824) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2006-11-27 16:36:20 UTC (rev 825) @@ -1,3 +1,10 @@ +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. + 2006-11-26 Danny Backx <dan...@us...> * include/aygshell.h (SHRGINFO, SHRecognizeGesture) : Define. Modified: trunk/cegcc/src/w32api/include/tlhelp32.h =================================================================== --- trunk/cegcc/src/w32api/include/tlhelp32.h 2006-11-26 16:57:35 UTC (rev 824) +++ trunk/cegcc/src/w32api/include/tlhelp32.h 2006-11-27 16:36:20 UTC (rev 825) @@ -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 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |