I seen this commit. I do exactly the same, trying to get primary_buffer. But I have it empty, filled with zeros. >Tue, 22 Mar 2016 , 21:35 +05:00 от Antenore Gatta < anten...@simbiosi.org >: > >On Tue, 22 Mar 2016 18:38:15 +0300 >c0f...@mail.ru wrote: > >> 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. > >Take a look at what we have done in Remmina: > >https://github.com/FreeRDP/Remmina/commit/5caf0121e69acd22effbb1a159b3ebeef8e0f0dd > >Take also a look the "commits" around that one > >https://github.com/FreeRDP/Remmina/commit > > > >> ---------------------------------------------------------------------- >> ------------------------------------------------------------------------------ >> 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 > > > >-- >-----BEGIN GEEK CODE BLOCK----- >Version: 3.12 >GIT !d s: !a C++ UL++++ P+++ L+++ E--- W+++ N+++ o-- K- w--- >O+ M-- V-- PS+++ PE Y+ PGP t+++ 5++ X R++ tv- b+ DI D++ >G e+ h---- r+++ y++++ >------END GEEK CODE BLOCK------
------------------------------------------------------------------------------ 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