It appears there are some additional items in the toolhelp structures. As a guess, perhaps Microsoft has added them over time (it would seem the API can handle extending of the structure). When calling the toolhelp functions, one sets the dwSize field to the size of the structure. If these fields are not present, the api calls fail, because wince can't populate the full amount of data.
All of the info from the patch comes at the pages linked from: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcekernl/html/ceconToolHelpStructures.asp 2006-11-18 Kevin O'Connor <[EMAIL PROTECTED]> * include/tlhelp32.h: Update fields in PROCESSENTRY32, THREADENTRY32, MODULEENTRY32. Index: src/w32api/include/tlhelp32.h =================================================================== --- src/w32api/include/tlhelp32.h (revision 812) +++ src/w32api/include/tlhelp32.h (working copy) @@ -75,6 +75,8 @@ #else CHAR szExeFile[MAX_PATH]; #endif + DWORD th32MemoryBase; + DWORD th32AccessKey; } PROCESSENTRY32,*PPROCESSENTRY32,*LPPROCESSENTRY32; typedef struct tagTHREADENTRY32 { DWORD dwSize; @@ -84,6 +86,8 @@ LONG tpBasePri; LONG tpDeltaPri; DWORD dwFlags; + DWORD th32AccessKey; + DWORD th32CurrentProcessID; } THREADENTRY32,*PTHREADENTRY32,*LPTHREADENTRY32; typedef struct tagMODULEENTRY32W { DWORD dwSize; @@ -113,6 +117,7 @@ CHAR szModule[MAX_MODULE_NAME32 + 1]; CHAR szExePath[MAX_PATH]; #endif + DWORD dwFlags; } MODULEENTRY32,*PMODULEENTRY32,*LPMODULEENTRY32; BOOL WINAPI Heap32First(LPHEAPENTRY32,DWORD,DWORD); BOOL WINAPI Heap32ListFirst(HANDLE,LPHEAPLIST32); ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel