Probably. You get that error if you pass a PID for a process that no longer exists. (if you had a process exit between the calls to EnumProcesses and OpenProcess) Roger