Using the CreateToolhelp32Snapshot(TH32CS_SNAPMODULE)
function (to read the process full path) leaks memory on
some applications you are reading info from. For example
EXCEL.EXE, WINWORD.EXE, etc. The MSDN help describes that
using the CloseHandle() function in CE environment leaks
memory as this does and recommends using the
CloseToolhelp32Snapshot() which is not available in
Windows 2000 (SP4). I have implemented the reading process
as done on the example available on the MSDN help "Taking
a Snapshot and Viewing Processes". This is fatal, since we
can not ship any application that behaves like this and I
have not found a simple workaround.