void ContextNew(freerdp *instance, rdpContext *context) { Console.WriteLine("ContextNew"); hPreConnect = new pPreConnect(this.PreConnect); hPostConnect = new pPostConnect(this.PostConnect); instance->PreConnect = Marshal.GetFunctionPointerForDelegate(hPreConnect); instance->PostConnect = Marshal.GetFunctionPointerForDelegate(hPostConnect); this.context = context; input = instance->input; settings = instance->settings; }
private void ContextNew(freerdp *instance, rdpContext *context) { Debug.WriteLine("ContextNew"); _hPreConnect = new pPreConnect(this.PreConnect); _hPostConnect = new pPostConnect(this.PostConnect); instance->PreConnect = Marshal.GetFunctionPointerForDelegate(_hPreConnect); instance->PostConnect = Marshal.GetFunctionPointerForDelegate(_hPostConnect); this._context = context; _input = instance->input; PubSub.SubscribeToTerminate(_context, _terminateEventHandlerDelegate); PubSub.SubscribeToErrorInfo(_context, _errorInfoEventHandlerDelegate); }
void ContextNew(freerdp* instance, rdpContext* context) { Console.WriteLine("ContextNew"); hPreConnect = new pPreConnect(this.PreConnect); hPostConnect = new pPostConnect(this.PostConnect); instance->PreConnect = Marshal.GetFunctionPointerForDelegate(hPreConnect); instance->PostConnect = Marshal.GetFunctionPointerForDelegate(hPostConnect); this.context = context; input = instance->input; settings = instance->settings; }