public AltSecUpdate(rdpContext *context) { this.context = context; this.instance = context->instance; this.update = instance->update; this.altsec = update->altsec; }
public PrimaryUpdate(rdpContext *context) { this.context = context; this.instance = context->instance; this.update = instance->update; this.primary = update->primary; }
public void SurfaceBits(rdpContext *context, SurfaceBits *surfaceBits) { SurfaceBitsCommand cmd = new SurfaceBitsCommand(); cmd.Read(surfaceBits); iSource.OnSurfaceCommand(cmd); }
public SecondaryUpdate(rdpContext *context) { this.context = context; this.instance = context->instance; this.update = instance->update; this.secondary = update->secondary; }
public void SurfaceBits(rdpContext *context, SurfaceBits *surfaceBits) { Log.Verbose("SurfaceBits"); SurfaceBitsCommand cmd = new SurfaceBitsCommand(); cmd.Read(surfaceBits); }
public static void SubscribeToErrorInfo(rdpContext *context, ErrorInfoEventHandlerDelegate handler) { if (NativeMethods.PubSub_Subscribe(context->pubSub, "ErrorInfo", Marshal.GetFunctionPointerForDelegate(handler)) != 0) { throw new FreeRdpException("Failed to subscribe to ErrorInfo event"); } }
public void SurfaceBits(rdpContext *context, SurfaceBits *surfaceBits) { Console.WriteLine("SurfaceBits"); SurfaceBitsCommand cmd = new SurfaceBitsCommand(); cmd.Read(surfaceBits); }
private unsafe void DisposeContext() { if (_context != null) { PubSub.UnSubscribeToTerminate(_context, _terminateEventHandlerDelegate); PubSub.UnSubscribeToErrorInfo(_context, _errorInfoEventHandlerDelegate); NativeMethods.freerdp_context_free(_freerdp); _context = null; } }
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); }
public FreeRdpControl() { InitializeComponent(); rdp_client_entry_points_v1 e = new rdp_client_entry_points_v1(); _entryPoint = &e; NativeMethods.RdpClientEntry(_entryPoint); _context = NativeMethods.freerdp_client_context_new(_entryPoint); _instance = _context->instance; _settings = _instance->settings; // TODO: Set values for Hostname, domain, username, password this.Hostname = "10.x.x.xx"; // atleast this one should be set }
public void Synchronize(rdpContext *context) { }
public void SetBounds(rdpContext *context, rdpBounds *bounds) { }
public void EndPaint(rdpContext *context) { }
public void BeginPaint(rdpContext *context) { }
public void EllipseCB(rdpContext *context, EllipseCBOrder *ellipse_cb) { }
public AltSecUpdate(rdpContext* context) { this.context = context; this.instance = context->instance; this.update = instance->update; this.altsec = update->altsec; }
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; }
public void Palette(rdpContext *context, PaletteUpdate *palette) { }
public void DesktopResize(rdpContext *context) { }
public Update(rdpContext* context) { this.context = context; this.instance = context->instance; this.update = instance->update; }
public PrimaryUpdate(rdpContext* context) { this.context = context; this.instance = context->instance; this.update = instance->update; this.primary = update->primary; }
public SecondaryUpdate(rdpContext* context) { this.context = context; this.instance = context->instance; this.update = instance->update; this.secondary = update->secondary; }
public void BitmapUpdate(rdpContext *context, BitmapUpdate *bitmap) { Console.WriteLine("BitmapUpdate"); }
public void PatBlt(rdpContext *context, PatBltOrder *patblt) { }
public void PlaySound(rdpContext *context, PlaySoundUpdate *playSound) { }
public void OpaqueRect(rdpContext *context, OpaqueRectOrder *opaqueRect) { Console.WriteLine("OpaqueRect"); }
public void DstBlt(rdpContext *context, DstBltOrder *dstblt) { }
public void FastGlyph(rdpContext *context, FastGlyphOrder *fast_glyph) { }
public void ScrBlt(rdpContext *context, ScrBltOrder *scrblt) { }
public void PolygonSC(rdpContext *context, PolygonSCOrder *polygon_sc) { }
public void DrawNineGrid(rdpContext *context, DrawNineGridOrder *drawNineGrid) { }
public void PolygonCB(rdpContext *context, PolygonCBOrder *polygon_cb) { }
public Update(rdpContext *context) { this.context = context; this.instance = context->instance; this.update = instance->update; }
public void EllipseSC(rdpContext *context, EllipseSCOrder *ellipse_sc) { }