Is there an elegant way to enumerate all currently running processes, similar to EnumWindows?
Is there an elegant way to enumerate all currently running processes, similar to EnumWindows?
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials
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.
http://msdn.microsoft.com/library/en...mprocesses.asp
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.
[email protected]
Microsoft Visual Studio .NET 2003 Enterprise Architect
Windows XP Pro
Code Tags
Programming FAQ
Tutorials