// When you don't want the ProcessId, use this overload and pass IntPtr.Zero for the second parameter public uint GetWindowThreadProcessId(IntPtr hWnd, IntPtr ProcessId) { return(PInvoker.GetWindowThreadProcessId(hWnd, ProcessId)); }
public uint GetWindowThreadProcessId(IntPtr hWnd, out uint lpdwProcessId) { return(PInvoker.GetWindowThreadProcessId(hWnd, out lpdwProcessId)); }