int GetProcMainWnd(int pid)

Returns the specified process's main window handle. Trust Level Required: High

Parameters

Name Description
pid The process ID.

Return

The window handle, or 0.