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; }