Is there an elegant way to enumerate all currently running processes, similar to EnumWindows?
EnumProcesses( DWORD *, DWORD, DWORD * );
First param is an array that will receive the list of process identifiers.
Second param is the size in bytes of the first param.
Third param is the number of bytes returned in the first param array.
Thanks, that wasn't in my reference, I guess I should get an updated version, or just use MSDN.
Is it possible to enumerate all top level windows related to a particular process? Unless there's some function I haven't found, the only way would be to EnumWindows, then check the HINSTANCE of each window.