using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.Threading; using Lskj.Control; namespace Lskj.Attach.Client.Model { [StructLayout(LayoutKind.Sequential, Size = 1)] internal struct GlobalVariable { public static uint UserId; public static bool NeedExit; public static object MutexObj; public static Timer TimerObj; public static Thread ThreadObj; public static IntPtr WndMain; public static BaseForm BaseFormObj; public static AutoResetEvent NotifyEvent; static GlobalVariable() { TimerObj = null; ThreadObj = null; NeedExit = false; MutexObj = 1; UserId = 0; WndMain = IntPtr.Zero; BaseFormObj = null; NotifyEvent = new AutoResetEvent(true); } } }