Re: hooked functions in usermode printer driver

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Vipin (Vipin_at_nospam.com)
Date: 10/13/04


Date: Wed, 13 Oct 2004 20:22:50 +0530

Are your hooks specified properly in DrvEnableSurface(...)?

"Matt Kane" <MattKane@discussions.microsoft.com> wrote in message
news:452D8CC0-D896-45B5-9642-52CEB75A97CB@microsoft.com...
> I doubt that's it, as it's only certain things that aren't drawn on the
> surface. For instance, if I draw a square and a circle in one particular
> application, only the square will be printed.
>
> "Vipin" wrote:
>
> > ok,ok, I now I understand in 2000/XP you will have to use banding
method
> > because EngCreateBitmap fails for large sizes in usermode.
> >
> > In kernel mode the call suceeds for large sizes also.
> >
> > I had seen this behaviour before.
> >
> > In fact the engine surface creation has failed I feel over there. check
the
> > return code of EngCreateBitmap(...)
> >
> >
> >
> >
> > "Matt Kane" <MattKane@discussions.microsoft.com> wrote in message
> > news:3078C779-314C-4F7B-B988-C03F93DDE617@microsoft.com...
> > > Engine-managed. How would an HP driver help me? Do they have source
code
> > > available? There don't seem to be any examples of this in the DDK
samples.
> > >
> > > "Vipin" wrote:
> > >
> > > > That should be a problem with your driver and how you are managing
the
> > > > surfaces. Get an HP driver from their website and print, there are
User
> > Mode
> > > > Monolithic drivers available on their website.They will all print
> > properly
> > > > on all the pages. BTW what surface are you using device managed ot
> > engine
> > > > managed??
> > > >
> > > >
> > > > "Matt Kane" <MattKane@discussions.microsoft.com> wrote in message
> > > > news:A9F806B2-6EE7-4DB8-8CAC-CABF21C55CC5@microsoft.com...
> > > > > I have a monolithic usermode printer driver (see my numerous
previous
> > > > > question for details :) under development. It's adapted from an
> > earlier
> > > > > kernel-mode printer driver. I'm trying to work out the final
kinks,
> > and
> > > > I've
> > > > > come across some rather odd behavior.
> > > > >
> > > > > I've found that some applications have trouble printing particular
> > shapes
> > > > > (diagonal lines and ellipsesfor example) on any page except the
first.
> > In
> > > > the
> > > > > kernel-mode driver, these work fine, and in the debug output I can
see
> > > > calls
> > > > > to DrvBitBlt for each of these shapes that is drawn on the printed
> > image.
> > > > >
> > > > > In user-mode, I don't see these calls. In fact, I don't see any of
my
> > > > driver
> > > > > code being called. Somehow these shapes make it onto the first
page I
> > > > print,
> > > > > but never the second.
> > > > >
> > > > > I am hooking DrvBitBlt, DrvCopyBits, DrvStretchBlt, DrvTextOut,
> > > > > DrvFillPath, DrvStrokePath, DrvStrokeAndFillPath, and DrvLineTo.
> > > > >
> > > > > How would the application get data onto the driver's surfaces?
> > > > >
> > > > > --
> > > > > Matt Kane
> > > > > mkane@zebra.camel.com minus cigarettes
> > > >
> > > >
> > > >
> >
> >
> >



Relevant Pages

  • Re: hooked functions in usermode printer driver
    ... if I draw a square and a circle in one particular ... > because EngCreateBitmap fails for large sizes in usermode. ... > In kernel mode the call suceeds for large sizes also. ... > In fact the engine surface creation has failed I feel over there. ...
    (microsoft.public.development.device.drivers)
  • Non-Abelian Vector multiplication "pseudo-powers".
    ... conserved symmetries (I call them "sizes") are the real factors of the ... some quadratic sizes have polar duals with radii (square roots of the ... Sizes are raised to the power, and angles are multiplied by the power, ... The table for a non-abelian algebra, such as D3, can be expressed as ...
    (sci.math.symbolic)
  • Re: Image not resized to browser window
    ... want by ensuring you offer different sizes and making this plain. ... say 100px square and 500px square as a rough guide. ... photographer sites on the net that would be ... The existence of a sequence does not force you into it unless you ...
    (alt.html)
  • Re: Anyone got Artwork from ClassicArcadeGrafix Inc.? Burgertime art
    ... It's not 45 for the full side, it's 45 for the smaller square pieces, if you ... change the box that has the sizes in it to 'full size' it adds 100 bucks or ... The glue is a major issue, use extra adhesive if you do buy anything from ... or is it simply a fair price? ...
    (rec.games.video.arcade.marketplace)