hey, i'm trying to get the processId of a process. Normaly i would just get it with FindWindow and GetWindowThreadProcessId but the process does have a captionless window. So the only thing i found out is the classname of it.

Now how can i get the process id out of it?

thx and cya :)
Posted on 2003-10-14 13:42:05 by Knighty
i'm quite sure there's no way to find out a process id from a classname, anyway, why GetWindowThreadProcessId don't work at the same way in a captionless window ? I think the way is the same, FindWindow or GetWindow to retrieve the handle, then GetWindowThreadProcessId should work.
Posted on 2003-10-15 02:02:59 by Bit7
Get the handle and use CreateToolhelp32Snapshot + Process32First + Process32Next?
Posted on 2003-10-15 06:58:20 by roticv
ok thx i will try it :)
Posted on 2003-10-17 12:59:52 by Knighty