>Hi,
>
>How can I list the running processes on the current machine? I couldn't find a native VFP function that did this and it's not clear if an API function will (I discovered some functions like "GetProcessHeap", "GetProcessHeaps" or "GetProcessWindowStation" but I'm not sure that either one does what I want.)
>
There's sample code in the FAQ; it relies on two different approaches, one for NT, and one for everything else. The easiest of the two is the non-NT implementation uses CreateToolhelp32Snapshot, and then lists the processes by enumerating the list using Process32First and Process32Next. The code for doing this in NT, which lacks the Toolhelp32 functions, is implemented differently. Try
Ramon Jaquez's CodeThe functions you list allow you to do things once you know the ProcessID or hProcess, so you need this code first.