Example #1
0
        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;
        }
Example #2
0
        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);
        }
Example #3
0
		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;
		}