public void Initialize() { _IAP.Initialize(); _FCM.Initialize(); // 화면 꺼짐 방지 #if UNITY_ANDROID Screen.sleepTimeout = SleepTimeout.NeverSleep; #endif #if UNITY_IOS Screen.sleepTimeout = SleepTimeout.NeverSleep; #endif if (CONFIG.IsRunningAndroid()) { PlatformAndroid.I.Initialize(); curPlatform = PlatformAndroid.I; } else if (CONFIG.IsRunningiOS()) { PlatformIOS.I.Initialize(); curPlatform = PlatformIOS.I; } #if UNITY_EDITOR // test else { PlatformAndroid.I.Initialize(); curPlatform = PlatformAndroid.I; } #endif }
public ActionResult Create() { CONFIG cONFIG = new CONFIG(); cONFIG.CONFIG_DATA_PROCESS_PROC_NAME = "EASY_BUTTON_PROCESS"; cONFIG.CONFIG_DATA_PROCESS_PROC_SCHEMA = "DBO"; return View(cONFIG); }
/* void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e) * { * SerialPort sp = (SerialPort)sender; * String data = sp.ReadExisting(); * } */ private void Form1_Load(object sender, EventArgs e) { _Config = new CONFIG(); string[] serialPorts = SerialPort.GetPortNames(); if (serialPorts.Length > 0) { foreach (string serialPort in serialPorts) { comboBox1.Items.Add(serialPort); if (comboBox1.Items.Count > 0) { comboBox1.SelectedIndex = 0; button1.Enabled = true; } } } else { MessageBox.Show("找不到任何通訊埠!"); button1.Enabled = false; } button2.Enabled = false; button4.Enabled = false; Init(); }
private static byte[] PNGDistill(byte[] arrIn) { string sTempFile = CONFIG.GetPath("Root") + "tmpToCompress" + Guid.NewGuid(); File.WriteAllBytes(sTempFile, arrIn); int iResult; Utilities.GetExecutableOutput(sPNGDistillPath, "\"" + sTempFile + "\"" + " REPLACE", out iResult); byte[] arrNew = File.ReadAllBytes(sTempFile); #region DeleteTempFile try { File.Delete(sTempFile); FiddlerApplication.LogLeakedFile(sTempFile); } catch { Debug.Assert(false, "Could not delete Temp Input file"); } #endregion DeleteTempFile return(arrNew); }
public static bool downloadUpdate(string version) { string locapath = CONFIG.GetPath("Scripts"); string url = download_url + "update.php?v=" + version; return(DownloadFile(url, locapath)); }
public ActionResult Login(FormCollection collection) { // Gán các giá trị người dùng nhập liệu cho các biến var tendn = collection["username"]; var matkhau = collection["password"]; if (String.IsNullOrEmpty(tendn)) { ViewData["Loi1"] = "Phải nhập tên đăng nhập"; } else if (String.IsNullOrEmpty(matkhau)) { ViewData["Loi2"] = "Phải nhập mật khẩu"; } else { //Gán giá trị cho đối tượng được tạo mới (ad) CONFIG ad = data.CONFIGs.SingleOrDefault(n => n.TAIKHOAN == tendn && n.MATKHAU == matkhau); if (ad != null) { Session["Taikhoanadmin"] = ad; return(RedirectToAction("Index", "QuanLySanPham")); } else { ViewBag.Thongbao = "Tên đăng nhập hoặc mật khẩu không đúng"; } } return(View()); }
private static void RemoveAllCertificates() { try { bool flag = false; if (CertMaker.rootCertIsMachineTrusted()) { var rootCertificate = CertMaker.GetRootCertificate(); if (rootCertificate != null) { var subject = rootCertificate.Subject; if (!String.IsNullOrEmpty(subject)) { flag = Utilities.RunExecutableAndWait(CONFIG.GetPath("App") + "TrustCert.exe", String.Format("-u \"{0}\"", subject)); } } } if (CertMaker.removeFiddlerGeneratedCerts() || flag) { //FiddlerApplication.DoNotifyUser(this, string.Format("Fiddler-generated certificates have been removed from {0}", flag ? "both User and Machine Root storage." : "the Current User storage."), "Success", MessageBoxIcon.Asterisk); } } catch (Exception exception) { FiddlerApplication.ReportException(exception, ""); } }
static void Main(string[] args) { CONFIG.Load(); CARD.Open(); int[] d = new int[5]; d[0] = FUNC.ToInt32(0x27, 0x26, 0x13, 0x1A); d[1] = FUNC.ToInt32(0x04, 0x04, 0x0C, 0x00); d[2] = 0; d[3] = 0; d[4] = 0; CARD.SendCMD(1, 1, 1, 0x10, d, 100); Console.WriteLine("选择工作模式:1 有线 2 无线"); int mode = -1; int.TryParse(Console.ReadLine(), out mode); switch (mode) { case 1: Test1(); break; case 2: Test2(); break; } CARD.Close(); }
/// <summary> /// Initializes the <see cref="PlatformManager"/> /// </summary> internal static void Init() { EnvironmentSceneOverrider.Init(); Anchor.AddComponent <EasterEggs>(); GSM.transitionDidStartEvent += (float ignored) => { TransitionPrep(); }; GSM.transitionDidFinishEvent += (ScenesTransitionSetupDataSO ignored1, DiContainer ignored2) => { TransitionFinalize(); }; AllPlatforms = PlatformLoader.CreateAllPlatforms(Anchor.transform); CurrentPlatform = AllPlatforms[0]; if (CONFIG.HasKey("Data", "CustomPlatformPath")) { string savedPath = CONFIG.GetString("Data", "CustomPlatformPath"); for (int i = 0; i < AllPlatforms.Count; i++) { if (savedPath == AllPlatforms[i].platName + AllPlatforms[i].platAuthor) { CurrentPlatform = AllPlatforms[i]; break; } } } LoadHeart(); }
private void fmMain_Load(object sender, EventArgs e) { bool r; AppMutex = new Mutex(true, "AndonSys.AppHelper", out r); if (!r) { MessageBox.Show("系统已运行!", this.Text); Close(); return; } CONFIG.Load(); log = new Log(Application.StartupPath, "AppHelper", Log.DEBUG_LEVEL); log.Debug("系统运行"); gdApp.AutoGenerateColumns = false; LoadApp(); tbApp.Show(); timer.Enabled = true; }
private void OnEventViewOptionList(object sender, CONFIG e) { EqpName = e.eqpName; Language = e.language; MplusIP = e.mplusIP; MplusPort = e.mplusPort; VecIP = e.VecIP; }
public ActionResult Create() { CONFIG cONFIG = new CONFIG(); cONFIG.CONFIG_DATA_PROCESS_PROC_NAME = "EASY_BUTTON_PROCESS"; cONFIG.CONFIG_DATA_PROCESS_PROC_SCHEMA = "DBO"; return(View(cONFIG)); }
public ActionResult DeleteConfirmed(string id) { CONFIG cONFIG = db.CONFIGs.Find(id); db.CONFIGs.Remove(cONFIG); db.SaveChanges(); return(RedirectToAction("Index")); }
public bool CheckAdmin() { CONFIG ad = (CONFIG)Session["Taikhoanadmin"]; if (ad != null) { return(true); } return(false); }
public ActionResult Edit([Bind(Include = "CONFIG_COMMON_NAME,CONFIG_DATA_PROCESS_PROC_SCHEMA,CONFIG_DATA_PROCESS_PROC_NAME,CONFIG_DATA_SYNC_PROC_SCHEMA,CONFIG_DATA_SYNC_PROC_NAME")] CONFIG cONFIG) { if (ModelState.IsValid) { db.Entry(cONFIG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index", "Home")); } return(View(cONFIG)); }
public static string ToXmlString() { CONFIG = CONFIG.Replace("{0}", ConnectionBuilder.ConnectionBuilder.GetDatabaseCxnString()); CONFIG = CONFIG.Replace("{1}", LogProperties.User); CONFIG = CONFIG.Replace("{2}", LogProperties.Source); CONFIG = CONFIG.Replace("{3}", LogProperties.Request); CONFIG = CONFIG.Replace("{4}", LogProperties.Response); CONFIG = CONFIG.Replace("{5}", LogProperties.Stacktrace); return(CONFIG); }
private void renderView() { CONFIG config = getConfig(); checkBox1.Checked = config.autoStart; checkBox2.Checked = config.exitConfirm; checkBox3.Checked = config.autoSyncOnStart; checkBox4.Checked = config.autoSyncCircle; numericUpDown1.Enabled = config.autoSyncCircle; numericUpDown1.Value = config.interval; }
public IHttpActionResult Post(CONFIG c) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _ctx.Config.Add(c); _ctx.SaveChanges(); return(Created(c)); }
public static void Postfix(MapDisplay __instance, CharacterUI _owner) { if ((bool)CONFIG.GetValue(Settings.moveGlobalUiToPlayer1.ToString())) { var rect = (RectTransform)At.GetField(_owner, "m_rectTransform"); __instance.RectTransform.anchoredPosition = rect.anchoredPosition; __instance.RectTransform.sizeDelta = rect.sizeDelta; } else { __instance.RectTransform.anchoredPosition = Vector2.zero; __instance.RectTransform.sizeDelta = Vector2.zero; } }
public override void SetParamsData(int id, delegateClose _eventClose, params object[] args) { base.ActiveTween(false); _textVersion.text = "Ver " + CONFIG.GetBuildVersion(); m_id = id; eventClose = _eventClose; m_args = args; _ProgressBar.Reset(); _objLoginButtonGroup.gameObject.SetActive(false); _clickLock = false; }
// GET: CONFIGs/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } CONFIG cONFIG = db.CONFIGs.Find(id); if (cONFIG == null) { return(HttpNotFound()); } return(View(cONFIG)); }
private void btnCtrl_Click(object sender, EventArgs e) { this.ckAutoResponderExt = (CheckBox)this.epage.Controls["ckAutoResponderExt"]; if (!this.ckAutoResponderExt.Checked) { MessageBox.Show("Check the EnableAutoResponderExt checkbox and then click the button", "AutoResponderExtension"); } else if (FiddlerApplication.oAutoResponder.IsEnabled) { this.path = CONFIG.GetPath("MyDocs") + @"\Fiddler2\AutoResponderExt.xml"; FiddlerApplication.oAutoResponder.SaveRules(this.path); this.LoadRules(this.path, true); } }
void Update() { if (CONFIG.IsRunningAndroid() || CONFIG.IsRunningiOS()) { if (Input.GetKeyDown(KeyCode.Escape)) { UI.I.ShowMsgBox("Are you sure you want to quit the game?", (id, args) => { if (args[0].ToString() == "ok") { Main.I.OnQuit(); } }); } } }
public FiddlerScriptCSharpExtension() { var scriptPath = CONFIG.GetPath("Scripts"); _roslynScriptRepositories = new List <FiddlerScriptRepository> { new FiddlerScriptRepository(new CSharpScriptEngine(), scriptPath), new FiddlerScriptRepository(new VisualBasicScriptEngine(), scriptPath) }; FiddlerApplication.FiddlerBoot += () => _roslynScriptRepositories.ForEach(r => r.ExecuteAllOnBoot()); FiddlerApplication.FiddlerShutdown += () => _roslynScriptRepositories.ForEach(r => r.ExecuteAllOnShutdown()); FiddlerApplication.BeforeFiddlerShutdown += (_, cancel) => cancel.Cancel = !_roslynScriptRepositories.Aggregate(true, (v, r) => v & r.ExecuteAllOnBeforeShutdown()); FiddlerApplication.FiddlerAttach += () => _roslynScriptRepositories.ForEach(r => r.ExecuteAllOnAttach()); FiddlerApplication.FiddlerDetach += () => _roslynScriptRepositories.ForEach(r => r.ExecuteAllOnDetach()); FiddlerApplication.AfterSessionComplete += session => _roslynScriptRepositories.ForEach(r => r.ExecuteAllOnDone(session)); FiddlerApplication.OnWebSocketMessage += (_, args) => _roslynScriptRepositories.ForEach(r => r.ExecuteAllOnWebSocketMessage(args.oWSM)); }
private static byte[] BrotliCompress(byte[] arrIn, out uint iMS) { string sTempFile = CONFIG.GetPath("Root") + "tmpToCompress" + Guid.NewGuid(); string sOutFile = String.Concat(sTempFile, ".br"); File.WriteAllBytes(sTempFile, arrIn); string sParams = String.Format("--in \"{0}\" --out \"{1}\" {2}", sTempFile, sOutFile, FiddlerApplication.Prefs.GetStringPref("extensions.compressibility.Brotli.Args", String.Empty)); int iExitCode = 0; Stopwatch oSW = Stopwatch.StartNew(); Utilities.GetExecutableOutput(sBrotliPath, sParams, out iExitCode); iMS = (uint)oSW.ElapsedMilliseconds; if (0 != iExitCode) { throw new Exception("Brotli conversion failed"); } byte[] arrOut = File.ReadAllBytes(sOutFile); #region DeleteTempFiles try { File.Delete(sTempFile); FiddlerApplication.LogLeakedFile(sTempFile); } catch { Debug.Assert(false, "Could not delete Temp Input file"); } try { File.Delete(sOutFile); } catch { FiddlerApplication.LogLeakedFile(sOutFile); Debug.Assert(false, "Could not delete Temp Output file"); } #endregion DeleteTempFiles return(arrOut); }
private static void DecryptHttps() { CertMaker.EnsureReady(); if ((CertMaker.rootCertExists() || CertMaker.createRootCert()) && !CertMaker.rootCertIsTrusted()) { var flag = CertMaker.trustRootCert(); if (!flag) { //FiddlerApplication.DoNotifyUser(this, "Unable to configure Windows to Trust the Fiddler Root certificate.\n\nThe LOG tab may contain more information.", "Certificate Trust", MessageBoxIcon.Exclamation); } if (flag && FiddlerApplication.Prefs.GetBoolPref("fiddler.CertMaker.OfferMachineTrust", ((Environment.OSVersion.Version.Major > 6) || ((Environment.OSVersion.Version.Major == 6) && (Environment.OSVersion.Version.Minor > 1))))) { var subject = CertMaker.GetRootCertificate().Subject; Utilities.RunExecutable(CONFIG.GetPath("App") + "TrustCert.exe", String.Format("\"{0}\"", subject)); } } }
protected override void virStart() { if (_objCompany) { _objCompany.gameObject.SetActive(false); } FB = gameObject.AddComponent <FBController>(); // Main이 유일하게 Object라서 여기에 컨트롤 적용 #if LOCAL_DEBUG string str = CONFIG.GetXMLConfigSystemInfo(); Debug.Log(str); #endif NET.I.Initialize(); SCENE.I.Initialize(); UI.I.Initialize(); USER.I.Initialize(); // 페이스북 컨트롤 접근권한은 USER에 주자 FX.I.Initialize(); DB.I.Initialize(); SYSTIMER.I.Initialize(); PLATFORM.I.Initialize(); SOUND.I.Initialize(); // check version CONFIG.CheckMatchClientVersion((ok, msg) => { Debug.Log(msg); if (ok) { StartScene(); } else { UI.I.ShowMsgBox(msg, (id, args) => { Debug.Log(args[0].ToString()); if (args[0].ToString() == "ok") { PLATFORM.I.OpenURL_AppsStorePackageDownload(); } else { Main.I.OnQuit(); } }); } }); }
public ActionResult Create([Bind(Include = "CONFIG_COMMON_NAME,CONFIG_DATA_PROCESS_PROC_SCHEMA,CONFIG_DATA_PROCESS_PROC_NAME,CONFIG_DATA_SYNC_PROC_SCHEMA,CONFIG_DATA_SYNC_PROC_NAME")] CONFIG cONFIG) { if (ModelState.IsValid) { db.CONFIGs.Add(cONFIG); try { db.SaveChanges(); } catch (Exception ex) { ModelState.AddModelError(String.Empty, ex.InnerException.InnerException.Message); return(RedirectToAction("Create", "CONFIGs")); } } return(RedirectToAction("Index", "Home", new { SelectedClient = cONFIG.CONFIG_COMMON_NAME })); }
public void Initialize() { var options = ScriptOptions.Default .WithIsInteractive(false) .AddSearchPaths(CONFIG.GetPath("App"), CONFIG.GetPath("Scripts")) .AddReferences("mscorlib.dll", "System.dll", "System.Core.dll", "Microsoft.CSharp.dll", "Fiddler.exe") .AddNamespaces("Fiddler"); string text; using (var fs = new FileStream(_path, FileMode.Open, FileAccess.Read)) { using (var reader = new StreamReader(fs)) { text = reader.ReadToEnd(); } } ScriptState script; try { script = ExecuteScript(text, options); } catch (Exception e) { FiddlerApplication.Log.LogString(e.ToString()); return; } script.CreateDelegate <Action>("Main")?.Invoke(); AutoTamperRequestBeforeDelegate = script.CreateDelegate <Action <Session> >("OnBeforeRequest") ?? script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.AutoTamperRequestBefore)); AutoTamperRequestAfterDelegate = script.CreateDelegate <Action <Session> >("OnAfterRequest") ?? script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.AutoTamperRequestAfter)); AutoTamperResponseBeforeDelegate = script.CreateDelegate <Action <Session> >("OnBeforeResponse") ?? script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.AutoTamperResponseBefore)); AutoTamperResponseAfterDelegate = script.CreateDelegate <Action <Session> >("OnAfterResponse") ?? script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.AutoTamperResponseAfter)); OnBeforeReturningErrorDelegate = script.CreateDelegate <Action <Session> >("OnReturningError") ?? script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.OnBeforeReturningError)); OnPeekAtRequestHeadersDelegate = script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.OnPeekAtRequestHeaders)); OnPeekAtResponseHeadersDelegate = script.CreateDelegate <Action <Session> >(nameof(IAutoTamper3.OnPeekAtResponseHeaders)); OnFiddlerAttachDelegate = script.CreateDelegate <Action>("OnAttach"); OnFiddlerDetachDelegate = script.CreateDelegate <Action>("OnDetach"); OnFiddlerBeforeShutdownDelegate = script.CreateDelegate <Func <bool> >("OnBeforeShutdown"); OnFiddlerBootDelegate = script.CreateDelegate <Action>("OnBoot"); OnFiddlerShutdownDelegate = script.CreateDelegate <Action>("OnShutdown"); OnDoneDelegate = script.CreateDelegate <Action <Session> >("OnDone"); OnWebSocketMessageDelegate = script.CreateDelegate <Action <WebSocketMessage> >("OnWebSocketMessage"); }
protected override void OnSourceInitialized(EventArgs e) { base.OnSourceInitialized(e); IntPtr windowHandle = new WindowInteropHelper(this).Handle; CONFIG config = WindowPlacement.ReadConfig("config.txt"); WindowPlacement.SetPlacement(windowHandle, config.placement); // Adds the windows message processing hook and registers USB device add/removal notification. HwndSource source = HwndSource.FromHwnd(new WindowInteropHelper(this).Handle); if (source != null) { windowHandle = source.Handle; source.AddHook(HwndHandler); UsbNotification.RegisterUsbDeviceNotification(windowHandle); } }
public static ArrayList allThread = ArrayList.Synchronized(new ArrayList()); // All running thread static bool PrepareConfigFile() { Console.WriteLine("RUN->Prepare Configuration..."); folderConfig = my.program_path() + Path.DirectorySeparatorChar + "CONFIGs"; if (!Directory.Exists(folderConfig)) { try { Directory.CreateDirectory(folderConfig); } catch (Exception ex) { Console.WriteLine("ERROR! Cannot create config folder [" + folderConfig + "]" + ex.Message); Thread.Sleep(5000); Console.ReadLine(); return(false); } } fileConfigName = folderConfig + Path.DirectorySeparatorChar + "main.ini"; fileConfigBackup = folderConfig + Path.DirectorySeparatorChar + "main__" + my.datetime_to_sql(DateTime.Now).Replace("-", "").Replace(":", "").Replace(" ", "") + ".ini"; Config = new CONFIG(); if (!Config.load_from_file(fileConfigName)) { if (!__Config_Create_FirstTime()) { Console.WriteLine("ERROR! Cannot Create Config File !!!"); Thread.Sleep(5000); Console.ReadLine(); return(false); } } if (!__Config_Verify_Loaded()) { Console.WriteLine("ERROR! Cannot VerifyConfig !!!"); Thread.Sleep(5000); Console.ReadLine(); return(false); } // Everything OK, Success return(true); }
public void AddToCONFIG(CONFIG cONFIG) { base.AddObject("CONFIG", cONFIG); }
public static CONFIG CreateCONFIG(long id, string descr, string onda) { CONFIG cONFIG = new CONFIG(); cONFIG.id = id; cONFIG.descr = descr; cONFIG.onda = onda; return cONFIG; }
public static RC Config(CONFIG op, params object[] args) { // sqlite3_config() shall return SQLITE_MISUSE if it is invoked while the SQLite library is in use. if (_GlobalStatics.IsInit) return SysEx.MISUSE_BKPT(); RC rc = RC.OK; switch (op) { #if THREADSAFE // Mutex configuration options are only available in a threadsafe compile. case CONFIG.SINGLETHREAD: { // Disable all mutexing _GlobalStatics.CoreMutex = false; _GlobalStatics.FullMutex = false; break; } case CONFIG.MULTITHREAD: { // Disable mutexing of database connections, Enable mutexing of core data structures _GlobalStatics.CoreMutex = true; _GlobalStatics.FullMutex = false; break; } case CONFIG.SERIALIZED: { // Enable all mutexing _GlobalStatics.CoreMutex = true; _GlobalStatics.FullMutex = true; break; } case CONFIG.MUTEX: { // Specify an alternative mutex implementation //_GlobalStatics.Mutex = (sqlite3_mutex_methods)args[0]; break; } case CONFIG.GETMUTEX: { // Retrieve the current mutex implementation //args[0] = _GlobalStatics.Mutex; break; } #endif case CONFIG.MALLOC: { // Specify an alternative malloc implementation //_GlobalStatics.m = *va_arg(args, sqlite3_mem_methods*); break; } case CONFIG.GETMALLOC: { // Retrieve the current malloc() implementation //if (_GlobalStatics.m.xMalloc==0) sqlite3MemSetDefault(); //args[0]= _GlobalStatics.m; break; } case CONFIG.MEMSTATUS: { // Enable or disable the malloc status collection _GlobalStatics.Memstat = (bool)args[0]; break; } case CONFIG.SCRATCH: { // Designate a buffer for scratch memory space _GlobalStatics.Scratch = (byte[][])args[0]; _GlobalStatics.ScratchSize = (int)args[1]; _GlobalStatics.Scratchs = (int)args[2]; break; } #if ENABLE_MEMSYS3 || ENABLE_MEMSYS5 case CONFIG_HEAP: { // Designate a buffer for heap memory space _GlobalStatics.Heap.data = va_arg(args, void*); _GlobalStatics.Heap.length = va_arg(args, int); _GlobalStatics.MinReq = va_arg(ap, int); if (_GlobalStatics.MinReq < 1) _GlobalStatics.MinReq = 1; else if (SysEx_GlobalStatics.MinReq > (1<<12)) // cap min request size at 2^12 _GlobalStatics.MinReq = (1<<12); if (!_GlobalStatics.Heap.data) // If the heap pointer is NULL, then restore the malloc implementation back to NULL pointers too. This will cause the malloc to go back to its default implementation when sqlite3_initialize() is run. memset(&_GlobalStatics.m, 0, sizeof(_GlobalStatics.m)); else // The heap pointer is not NULL, then install one of the mem5.c/mem3.c methods. If neither ENABLE_MEMSYS3 nor ENABLE_MEMSYS5 is defined, return an error. #if ENABLE_MEMSYS3 _GlobalStatics.m = sqlite3MemGetMemsys3(); #endif #if ENABLE_MEMSYS5 _GlobalStatics.m = sqlite3MemGetMemsys5(); #endif break; } #endif case CONFIG.LOOKASIDE: { _GlobalStatics.LookasideSize = (int)args[0]; _GlobalStatics.Lookasides = (int)args[1]; break; } case CONFIG.LOG: { // Record a pointer to the logger function and its first argument. The default is NULL. Logging is disabled if the function pointer is NULL. // MSVC is picky about pulling func ptrs from va lists. // http://support.microsoft.com/kb/47961 _GlobalStatics.Log = (Action<object, int, string>)args[0]; _GlobalStatics.LogArg = (object)args[1]; break; } case CONFIG.URI: { _GlobalStatics.OpenUri = (bool)args[0]; break; } #if ENABLE_SQLLOG case CONFIG.SQLLOG: { _GlobalStatics.Sqllog = (Action<object, TagBase, int, string>)args[0];; _GlobalStatics.SqllogArg = (object)args[1]; break; } #endif default: { rc = RC.ERROR; break; } } return rc; }