Is there a way to get the thread or hwnd from a process id?

Thanks!~