/// <summary> /// Finds the window associated with the current thread and process. /// </summary> /// <returns>A window handle represented as a <see cref="IntPtr"/>.</returns> protected virtual IntPtr GetGameViewWindowHandle() { var processId = Process.GetCurrentProcess().Id; return(WindowHelpers.FindWindowWithThreadProcessId(processId)); }
/// <summary> /// Gets the Game View window handle. /// </summary> /// <remarks>Overridden in test project. Do not remove without updating tests.</remarks> protected override IntPtr GetGameViewWindowHandle() { return(WindowHelpers.GetGameViewWindowHandle(Process.GetCurrentProcess().Id)); }