while(pPrevWnd && !Found)
// Does this window have the 'previous instance tag' set?
if (::GetProp(pPrevWnd->GetSafeHwnd(), Prog)) // Found window
Found = TRUE;
else // Did not find window, get next window in list...
pPrevWnd = pPrevWnd->GetWindow(GW_HWNDNEXT);
memset(&StartupInfo, 0, sizeof(StartupInfo));
StartupInfo.cb = sizeof(StartupInfo);
Is it possible to trace the origin of a process in the process list? e.g. some spy processes come in and it is not possible to see from the names of the processes to whom they belong. It would be very nice to be able to trace the origin of a process. Is it maybe possible with the files option?
Disregarding the slight "hack" feeling due to relying on window titles and static dialog-item id's and addresses etc, I must say this (the sourcecode mostly) is an impressive show of how to really dig deep into the processes and workings of Windows.