Having multiple instances of a single application start a single instance of another one
Jerry Hill
malaclypse2 at gmail.com
Fri Feb 23 18:34:32 EST 2007
On 2/23/07, buffinator <buffinator at mymail.com> wrote:
> 2. How do I check if a process ID is bound to a running application.
Under windows, this should work:
>>> import win32process
>>> running_pids = win32process.EnumProcesses()
>>> running_pids
(0, 4, 1048, 1496, 1656, 1836, 1896, 756, 988, 1712, 220, 1156, 240,
1600, 1932, 428, 1100, 1880, 1152, 1444, 296, 624, 536, 412, 1812,
3384, 2064, 2164, 2344, 2516, 2816, 2992, 3412, 3628, 2836, 3168,
3420, 3408, 816, 1676, 504, 3244, 2404, 452, 1624, 3924, 2660, 3736,
3608, 1304)
--
Jerry
More information about the Python-list
mailing list