Does anyone know which API calls I would need to make to determine the
amount of memory being consumed by a process. I would like to build (or if
someone knows where I could find one) an applet very similar to the Win2K
taskmanager where it will list all the processes, times and memory used.

I know how to get a process id and so on, but I can't seem to find an api
which will return the amout of memory associated with the process.

Any help would be greatly appreciated.

Thanks