EnumProcessModules() fails with "Invalid access to memory location. "

Hi,

I use EnumProcessModules() to list the modules of
processes in the system based on process Id. For some
of the processes, like “System PID=2”, I got an error
like “Invalid access to memory location.”

But if we use process viewer, we can see the process
information correctly. So what is the problem ?

Thanks,

G.C.


Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/