Hi all I write my own rdp client, based on freerdp library. Need to make screenshot remote machine after login.
I use Sample solution which comes with freerdp. static BOOL tf_begin_paint(rdpContext* context) { rdpGdi* gdi = context->gdi; gdi->primary->hdc->hwnd->invalid->null = 1; return TRUE; } static BOOL tf_end_paint(rdpContext* context) { rdpGdi* gdi = context->gdi; return TRUE; } BOOL tf_post_connect(freerdp* instance) { if (!gdi_init(instance, CLRCONV_ALPHA | CLRCONV_INVERT | CLRBUF_16BPP | CLRBUF_32BPP, NULL)) return FALSE; instance->update->BeginPaint = tf_begin_paint; instance->update->EndPaint = tf_end_paint; return (freerdp_channels_post_connect(instance->context->channels, instance) == CHANNEL_RC_OK); } How can I get a bitmap? I suppose is necessary to save gdi->primary_buffer in tf_end_paint, but this doesn't work. ---------------------------------------------------------------------- ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140 _______________________________________________ FreeRDP-devel mailing list FreeRDP-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freerdp-devel