How to fill structure variables of PROCESSENTRY32

Hi all,
I want to trap all the process currently running on system and the modules associated with each process.I had written code for it but problem is that when i m calling CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS, 0) to take a snapshot of all the process i m getting a valid handle. But to get the module associated with each process when i m calling
pe32.th32ModuleID, &me32, sizeof(MODULEENTRY32));
In which pe32 is of type PROCESSENTRY32.
It is returning o. so I want to ask that how i can fill the varibles of structure PROCESSENTRY32.

THANX in advance.

IndiaInfo Mail - the free e-mail service with a difference!
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!