public long OpenApplactionFun(IntPtr es) { string p = ltf.JsValue2StringW(es, ltf.GetJsParameter(es, 0)); Process.Start(p); return(ltf.JsUndefined()); }
public long f4Fun(IntPtr es) { long fun = ltf.GetJsParameter(es, 0); long arg = ltf.String2JsValue(es, "C#执行了回掉函数"); long[] ptarg = { arg }; IntPtr arrayStore = Marshal.AllocHGlobal(ptarg.Length * sizeof(long)); Marshal.Copy(ptarg, 0, arrayStore, ptarg.Length); ltf.JsCall(es, fun, arrayStore, 1); return(ltf.JsUndefined()); }
public long SetLayerWindowFun(IntPtr es) { bool t = ltf.JsValue2Boolean(es, ltf.GetJsParameter(es, 0)); ltf.SetViewTransparent(t); return(ltf.JsUndefined()); }
public long AutoGCFun(IntPtr es) { bool t = ltf.JsValue2Boolean(es, ltf.GetJsParameter(es, 0)); ltf.IsAutoGC(t, 50); return(ltf.JsUndefined()); }