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

◆ PlatformSpecificInitialize()

static unsafe void Microsoft.Xna.Framework.UserAsyncDispatcher.PlatformSpecificInitialize ( )
inlinestaticprivate

Definition at line 18 of file UserAsyncDispatcher.cs.

19 {
20 UnsafeNativeMethods.SecurityAttributes lpEventAttributes = new UnsafeNativeMethods.SecurityAttributes(inheritHandle: true);
22 if (parentExitEvent.IsInvalid)
23 {
25 }
26 AppDomain.CurrentDomain.ProcessExit += OnExit;
27 AppDomain.CurrentDomain.DomainUnload += OnExit;
28 KernelReturnCode result = (KernelReturnCode)WindowsManagedCallbackHandler.Initialize(parentExitEvent.DangerousGetHandle().ToPointer());
29 Helpers.ThrowExceptionFromResult((uint)result);
30 }
static void OnExit(object sender, EventArgs e)

References Microsoft.Xna.Framework.UnsafeNativeMethods.CreateEvent(), Microsoft.Xna.Framework.WindowsManagedCallbackHandler.Initialize(), Microsoft.Xna.Framework.UserAsyncDispatcher.OnExit(), Microsoft.Xna.Framework.UserAsyncDispatcher.parentExitEvent, Microsoft.Xna.Framework.Helpers.ThrowExceptionFromResult(), and System.IntPtr.Zero.

Referenced by Microsoft.Xna.Framework.UserAsyncDispatcher.Initialize().