33 lines
882 B
C#
33 lines
882 B
C#
namespace LSFileClient
|
|
{
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
using System.Threading;
|
|
using System.Timers;
|
|
|
|
[StructLayout(LayoutKind.Sequential, Size=1)]
|
|
internal struct LSGlobleVariable
|
|
{
|
|
public static System.Timers.Timer timer;
|
|
public static Thread hThread;
|
|
public static bool bNeedExit;
|
|
public static object mutexObj;
|
|
public static uint userId;
|
|
public static IntPtr hWndMain;
|
|
public static FrmBase masterForm;
|
|
public static AutoResetEvent notifyEvent;
|
|
static LSGlobleVariable()
|
|
{
|
|
timer = null;
|
|
hThread = null;
|
|
bNeedExit = false;
|
|
mutexObj = 1;
|
|
userId = 0;
|
|
hWndMain = IntPtr.Zero;
|
|
masterForm = null;
|
|
notifyEvent = new AutoResetEvent(true);
|
|
}
|
|
}
|
|
}
|
|
|