[FreeRDP-devel] Create screenshot

2016-03-22 Thread c0ff33
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;    ret

Re: [FreeRDP-devel] Create screenshot

2016-03-22 Thread c0ff33
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, b

Re: [FreeRDP-devel] Create screenshot

2016-03-22 Thread c0ff33
Previous i  used only GDI with software drawing, but for work gdi_UpdateSurfaces i turned on GFX. I tried  save bitmap in gdi_OutputUpdate , but received broken bmp  http://take.ms/TKGs2   https://gist.github.com/avQse/1674bb8f50574225168f   What am I doing wrong?   >Tue, 22 Mar 2016, 21:53 +05

Re: [FreeRDP-devel] Create screenshot

2016-03-23 Thread c0ff33
I did it. Just little change my code  https://gist.github.com/avQse/4334ec79e0fbe312b622 . Thank you all. -- Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceler