public static extern int gdi_init(freerdp* instance, UInt32 flags, IntPtr buffer);
public GDI(freerdp* instance) { this.flags = 0; this.instance = instance; }
public static extern void gdi_free(freerdp* instance);
public static extern int freerdp_disconnect(freerdp* instance);
public static extern int freerdp_check_fds(freerdp* instance);
private bool VerifyCertificate(freerdp* instance, IntPtr subject, IntPtr issuer, IntPtr fingerprint) { Console.WriteLine("VerifyCertificate"); return true; }
public static extern void freerdp_context_free(freerdp* instance);
bool PostConnect(freerdp* instance) { Console.WriteLine("PostConnect"); return true; }
private bool Authenticate(freerdp* instance, IntPtr username, IntPtr password, IntPtr domain) { Console.WriteLine("Authenticate"); return true; }
bool PreConnect(freerdp* instance) { Console.WriteLine("PreConnect"); if (iUpdate != null) { update = new Update(instance->context); update.RegisterInterface(iUpdate); } if (iPrimaryUpdate != null) { primary = new PrimaryUpdate(instance->context); primary.RegisterInterface(iPrimaryUpdate); } settings->rfxCodec = 1; settings->rfxCodecOnly = 1; settings->fastpathOutput = 1; settings->colorDepth = 32; settings->frameAcknowledge = 0; settings->performanceFlags = 0; settings->largePointer = 1; settings->glyphCache = 0; settings->bitmapCache = 0; settings->offscreenBitmapCache = 0; return true; }
void ContextFree(freerdp* instance, rdpContext* context) { Console.WriteLine("ContextFree"); }
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 bool VerifyCertificate(freerdp* instance, IntPtr subject, IntPtr issuer, IntPtr fingerprint) { return true; }
private bool Authenticate(freerdp* instance, IntPtr username, IntPtr password, IntPtr domain) { return true; }