Prev: For PDO: How to forward request to next lower driver stack automatically in KMDF?
Next: Mirror Driver - how to pass Bitmap to user-mode app thought DrvEscape.
From: Attributesoft on 11 Jun 2007 03:17 On 11 , 02:50, "Ivan Brugiolo [MSFT]" <ivanb...(a)online.microsoft.com> wrote: > The added value of your code would naturally > be to meaningfully union the rectangles in the CLIPOBJs. > There is no free bread for waht you are trying to do. > > -- > -- > This posting is provided "AS IS" with no warranties, and confers no rights. > Use of any included script samples are subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm > > <Attributes...(a)gmail.com> wrote in message > > news:1181509615.860750.135580(a)g4g2000hsf.googlegroups.com... > > > Ivan, what can you about this article > >http://msdn2.microsoft.com/en-us/library/ms797870.aspx > > , I wanted to test it, but I don't found WNDDATA structure and > > DrvVideo function. > >>You can accumulate the dirty regions by accumulating > >>the bounding rect(s) and the CLIPOBJ information that > >>is passed to the display driver to each DrvXXX call. > >>By definition, it's a strict enough superset of the changed area. > > Mmm... maybe you right, but I'm afraid of overload because if I store > > array of CLIPOBJ it will get by time bigger and bigger. > > Sorry for not correct English. > > > Vit. So what do you think what method is better thought accumulating CLIPOBJ or thought EngCreateWnd and etc. (but I don't understand how it's works)? And after accumulating I need copy that areas from surface, how can I copy those areas thought GDI user-mode or somehow thought DrvEscape, what the better way?
From: Attributesoft on 11 Jun 2007 06:36 How can I get the Image form Surface? Do I need to use CreateDC or there is another way to get image. I need to find the he fastest way to do this.
From: Attributesoft on 11 Jun 2007 06:53 Does Mirror Driver draws when each DrvXXX is calling or it does nothing with it?
From: Ivan Brugiolo [MSFT] on 11 Jun 2007 12:41 > So what do you think what method is better thought accumulating > CLIPOBJ or thought EngCreateWnd and etc. (but I don't understand how > it's works)? I would not recomend using WNDOBJs unless you have to track window position on the screen > And after accumulating I need copy that areas from surface, how can I > copy those areas thought GDI user-mode or somehow thought DrvEscape, > what the better way? GDI is the user-mode entrypoint for display drivers. You can easily see in the debugger how gdi32!ExtEscape translates to mirror!DrvEscape. There are a few ways to move data across use-mode and session space, and DrvEscape seems reasoanble given the knowledge of the subject you seem to have. -- -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm <Attributesoft(a)gmail.com> wrote in message news:1181546261.742744.304600(a)n4g2000hsb.googlegroups.com... > On 11 , 02:50, "Ivan Brugiolo [MSFT]" > <ivanb...(a)online.microsoft.com> wrote: >> The added value of your code would naturally >> be to meaningfully union the rectangles in the CLIPOBJs. >> There is no free bread for waht you are trying to do. >> >> -- >> -- >> This posting is provided "AS IS" with no warranties, and confers no >> rights. >> Use of any included script samples are subject to the terms specified >> athttp://www.microsoft.com/info/cpyright.htm >> >> <Attributes...(a)gmail.com> wrote in message >> >> news:1181509615.860750.135580(a)g4g2000hsf.googlegroups.com... >> >> > Ivan, what can you about this article >> >http://msdn2.microsoft.com/en-us/library/ms797870.aspx >> > , I wanted to test it, but I don't found WNDDATA structure and >> > DrvVideo function. >> >>You can accumulate the dirty regions by accumulating >> >>the bounding rect(s) and the CLIPOBJ information that >> >>is passed to the display driver to each DrvXXX call. >> >>By definition, it's a strict enough superset of the changed area. >> > Mmm... maybe you right, but I'm afraid of overload because if I store >> > array of CLIPOBJ it will get by time bigger and bigger. >> > Sorry for not correct English. >> >> > Vit. > > So what do you think what method is better thought accumulating > CLIPOBJ or thought EngCreateWnd and etc. (but I don't understand how > it's works)? > And after accumulating I need copy that areas from surface, how can I > copy those areas thought GDI user-mode or somehow thought DrvEscape, > what the better way? >
From: Ivan Brugiolo [MSFT] on 11 Jun 2007 12:45
CreateDC will give you a DC that you can use to call Drv[Draw]Escape. -- -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of any included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm <Attributesoft(a)gmail.com> wrote in message news:1181558173.886869.183660(a)p77g2000hsh.googlegroups.com... > How can I get the Image form Surface? > Do I need to use > CreateDC > or there is another way to get image. > I need to find the he fastest way to do this. > |