Re: DrvEnablePDEV is called more than DrvDisablePDEV by vipin
vipin
Thu Aug 19 10:21:59 CDT 2004
Hi Calvin,
Right, But it just gets called in response to CreateDC(...)
api for display also, when you call changedisplaysettings(...), it would
call
CreateDC(...) internally and also when you create windows using
CreateWindow(...)/GetDC and at aother times when the user changes
modes because of palette initialization or for creating a new surface based
on the new screen dimensions.
thanks
vipin
"Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message
news:OaBEC1fhEHA.712@TK2MSFTNGP09.phx.gbl...
> Hi Vipin,
>
> I know nothing about printer driver-:)
>
> Display drivers (not to confuse with the video miniport) in W2K/XP always
> run in kernel mode session space. The DrvEnablePDEV of a display driver
gets
> call when user changes a new display mode or enable a desktop by calling
> ChangeDisplaySettings(Ex) in W2K/XP.
>
> Thanks,
> Calvin
> -
> Calvin Guan Software Engineer
> ATI Technologies Inc. www.ati.com
> "vipin" <vipin@nospam.com> wrote in message
> news:OGo$YofhEHA.1656@TK2MSFTNGP09.phx.gbl...
> > Hi Calvin,
> > I didn't understand what you meant by context. In NT4 the
> > printer driver is kernel mode(similar to how display drivers
> > are mapped) and on win2k/XP, the user mode printer drivers can run in
> either
> > application address space or spooler(spoolsv.exe) address
> > space. Did you mean this?
> >
> > thanks
> > vipin
> >
> >
> > "Calvin Guan" <cguan@pleasenospam.ati.com> wrote in message
> > news:#WbT0afhEHA.592@TK2MSFTNGP11.phx.gbl...
> > > Wow, nice to know the context of Enable/DisablePDEV in print driver is
> > > totally different than that in a display driver.
> > > -
> > > Calvin Guan Software Engineer
> > > ATI Technologies Inc. www.ati.com
> > >
> > > "vipin" <vipin@nospam.com> wrote in message
> > > news:OZ1p2QfhEHA.1568@TK2MSFTNGP09.phx.gbl...
> > > > DrvEnablePdev is called in response ti CreateDC(...) win32 api and
> > > > DrvDisablePdev in response to DeleteDC(...) win32 api.
> > > >
> > > > The application is creating DCs and not deleting the DCs, I would
say
> in
> > > > this case. Which application are you printing from?
> > > >
> > > > thanks
> > > > vipin
> > > >
> > > > "Mr B" <ask@me> wrote in message
> > > > news:O9sFrYdhEHA.1392@TK2MSFTNGP11.phx.gbl...
> > > > > Hi
> > > > >
> > > > > Going through my driver, I noticed that DrvEnablePDEV is called
more
> > > often
> > > > > than DrvDisablePDEV in a printjob'
> > > > > The docs say I should allocate resources for PDEV in
DrvEnablePDEV,
> > and
> > > > > deallocate in DrvDisablePDEV, but this way I get a memory leak
> > > > >
> > > > > BTW, the driver seems to work !!!
> > > > >
> > > > > Any help on this ?
> > > > >
> > > > > TIA
> > > > > LB
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>