Hi, On Windows CE, the toolhelp functionality is implemented on its own dll. Additionally, (and because of the former), the snapshots must be closed with a special close function - CloseToolhelp32Snapshot - unlike the "desktop" Windows versions, which use the standard CloseHandle. The current code isn't doing it right. This patch fixes it. (in case the toolhelp_get_dll_name hunk isn't clear in the diff, I'm just 'reorganizing a bit'/'removing the goto' to minimize the #ifdefery.) OK? Cheers, Pedro Alves