Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CloseMainWindowCore()

bool System.Diagnostics.Process.CloseMainWindowCore ( )
inlineprivate

Definition at line 2222 of file Process.cs.

2223 {
2225 if (mainWindowHandle == (IntPtr)0)
2226 {
2227 return false;
2228 }
2229 int windowLong = global::Interop.User32.GetWindowLong(mainWindowHandle, -16);
2230 if (((uint)windowLong & 0x8000000u) != 0)
2231 {
2232 return false;
2233 }
2234 global::Interop.User32.PostMessageW(mainWindowHandle, 16, IntPtr.Zero, IntPtr.Zero);
2235 return true;
2236 }

References System.Diagnostics.Process.MainWindowHandle, and System.IntPtr.Zero.

Referenced by System.Diagnostics.Process.CloseMainWindow().