コード例 #1
0
        /// <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));
        }
コード例 #2
0
 /// <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));
 }