hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

device driver

    Sponsored Links

    Next

  • 1. PsSetCreateProcessNotifyRoutine & driver unloading
    DDK::PsSetCreateProcessNotifyRoutine say "Any driver that successfully registers a callback must remain loaded until the system itself is shut down. " my driver is a filter driver. i call PsSetCreateProcessNotifyRoutine in the DriverEntry. PsSetCreateProcessNotifyRoutine succeeds but init after it fails. so can i fail the DriverEntry by returning anything other than STATUS_SUCCESS. Or i must keep it loaded in a passthru mode (since i have called PsSetCreateProcessNotifyRoutine successfully) ...Mani
  • 2. How to send control code to usb device?
    I am developing a bda driver for usb device. I puzzled at that how to send control code to the device? I want to use DeviceIoControl, but don't know how to get the handle of the device. And I also doubt that DeviceIoControl is the proper method to do the job? Could anybody give me some comments or some snippets? Advance thanks!
  • 3. How to support FCP Targets with SCSI Miniport
    Hello Everyone, I am writing a SCSI-FCP Miniport driver for my FC HBA card. I saw the SCSI Port Driver Interfaces for the same. I understand that the SCSI Port driver will first do the FindAdapter and then starts sending SCSI Commands to find out the LUN list information for the HBA. The commands address the LUNs on a single FCP target. But, in case of FCP targets, each FCP target can have n-Luns. How do I make the FCP style of Target/LUN discovery work with the Windows SCSI stack? Is there any pointer for the same? Or is there a sample code available for the same? Please reply. Thanks in advance. Regards, Raj
  • 4. Missing network connection in WinXP SP2
    Hi, I using a NIDS miniport driver that simulate a virtual network adapter (there is no real NIC), After installing the driver in NON WinXP SP2 environment a new network connection is created in the network connections that represent the adapter, When I install this driver in WinXP SP2 the new network connection is missing and I can't set the connection properties such as the TCP/IP settings. The driver is installed properly and I can see the new connection in the registry but it doesn't appear in the network connections list. I read a microsoft article about missing network connections and did the operations indicated there, but it didn't help (the article is kb825826). I have the code of the driver so I can make changes in the code if needed. If someone knows this problem (and maybe have a solution) or have any idea of what could be the problem I'll be happy to get his/hers help. Thanks, Yossi.
  • 5. Filter monitor driver
    Hi!! I have 2 computers. One of them has to have installed a driver that put black screen and send the data that would appear on this screen to the other computer. So, I can't modify video memory. I think the only possibility that I have is to develop a filter monitor driver, isn't it? I didn't find any information about filter monitor drivers. Is it possible to develop? How? are there other possibilities? Could anyone help me with that question? Thanks Jordi

hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby DriverStarter » Wed, 03 Aug 2005 22:20:22 GMT

Hello, Every one:


   I need some help on my current project.


According to   MSDN's document,  graphic drivers can optionally support
DrvGradientFill() by setting HOOK_GRADIENTFILL flag when it calls
EngAssociateSurface or EngModifySurface.

we have a costomed printer driver using a GDI managed surface with standard 
bitmap
format. I was trying to recognize a graphic (vector) object (filled with a
Gradient color) by intercepting DrvGradientFill().

  Somehow, if I hook up DrvGtadientFIll() in printer driver, and trying to
print a Gradient object from MS WORD 2003, GDI just calls DrvFillPath() and
DrvStretchblt(), never calls DrvGradientFill(),


  Any body give me a hint?


  Thanks in advance,



Xiao






Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby Vipin » Thu, 04 Aug 2005 00:26:09 GMT

Make a win32 GradientFill(...) call.





standard
and



Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby DriverStarter » Thu, 04 Aug 2005 02:10:32 GMT

Thanks, Vipin. I tried, driver just doesn't call DrvGradientFill().


  I am wondering that DrvGradientFill() only works for diaplay drivers.















Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby Vipin » Thu, 04 Aug 2005 02:48:54 GMT

Did you add the entry in the exported functions list?
That seems to be the cause.

Thanks
Vipin










with



Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby DriverStarter » Thu, 04 Aug 2005 03:43:52 GMT

  I listed the DrvGradientFill() in the function table, and later, hook it 
up when calls EngAssociateSurface(). Since this is a 2k/xp user mode printer 
driver, that's all the needs to support the function I think.


    Correct me if I am wrong.


Thanks,























Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby Vipin » Thu, 04 Aug 2005 05:05:52 GMT

what type of surface is this? GDI or device managed?

Thanks
Vipin





printer















Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby DriverStarter » Thu, 04 Aug 2005 05:33:26 GMT

t's a typical GDI managed surface with a DIB created with a
EngCreateBitmap();

I am guessing that GDI simply cannot believe a printer driver can do
Gradient fill, therefore it always fills a Gradient object itself by calling
other simpler functions such as DrvFillPath(), DrvBitBlt();

Regards,



"Vipin" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...



Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby cazyoko » Thu, 04 Aug 2005 08:13:34 GMT

Please make sure followings. 
- GDI never calls this function for palletized surfaces. - Never mind. You 
use engine-managed surface.
- The driver hooks DrvGradientFill by setting the HOOK_GRADIENTFILL flag 
when it calls EngAssociateSurface or EngModifySurface. - Problbly you did 
it.
- GDI will not call DrvGradientFill for 8bpp destination surfaces.

{\rtf1\ansi\ansicpg932\deff0\deflang1033\deflangfe1041{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang1041\f0\fs20 Please make sure followings. 
\par - GDI never calls this function for palletized surfaces. - Never mind. You use engine-managed surface.
\par - The driver hooks DrvGradientFill by setting the HOOK_GRADIENTFILL flag when it calls EngAssociateSurface or EngModifySurface. - Problbly you did it.
\par - GDI will not call DrvGradientFill for 8bpp destination surfaces.
\par 
\par 
\par }

Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby Kev » Thu, 04 Aug 2005 08:17:11 GMT

ecause "a GDI managed surface with standard bitmap format" is vague, these
caveats apply: "GDI never calls this function for palletized surfaces" and
"GDI will not call DrvGradientFill for 8bpp destination surfaces".

They probably are not relevant to your situation (it is unlikely that the
surface involved is palettized or 8bbp).



"DriverStarter" < XXXX@XXXXX.COM > wrote in message
news:% XXXX@XXXXX.COM ...
calling
with
(filled



Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby Vipin » Tue, 09 Aug 2005 16:41:23 GMT

id you get this to work?
Thanks
Vipin

"DriverStarter" < XXXX@XXXXX.COM > wrote in message
news:% XXXX@XXXXX.COM ...



Re: hook to DrvGradientFill does not work in my Customed 2k/XP printer driver

Postby DriverStarter » Fri, 12 Aug 2005 03:32:11 GMT

did not go further, since it's not the critical point right now. but I
will check it later.


please see the topic "How to detact a objects (Vector, text, or Image) in a
customed printer driver"




Thanks









"Vipin" < XXXX@XXXXX.COM > wrote in message
news:OSWRVy% XXXX@XXXXX.COM ...



Similar Threads:

1.hook to DrvGradientFill does not work in my Customed 2k/XP

Hello, Every one:


   I am a new comer here, but need some help on my current project.


According to   MSDN's document,  graphic drivers can optionally support
DrvGradientFill() by setting HOOK_GRADIENTFILL flag when it calls
EngAssociateSurface or EngModifySurface.

we have a costumed driver using a GDI managed surface with standard bitmap
format. I was trying to recognize a graphic (vector) object (filled with a
Gradient color) by intercepting DrvGradientFill().

  Somehow, if I hook up DrvGtadientFIll() in printer driver, and trying to
print a Gradient object from MS WORD 2003, GDI just calls DrvFillPath and
DrvStrokePath, never calls DrvGradientFill(),


  Any body give me a hint?


  Thanks in advance,



Xiao




2.DPInst in quiet mode does not work on Win 2K

I install a driver package for an USB device using DPINST using 
InstallShield. I do this by installing the files on the client computer and 
then I launch DPINST.exe from within the setup. Not all of our customers 
need these drivers so the DPINST is run in quiet mode.
This works fine on all Windows XP machines, but sometimes it does not work 
on Windows 2K.

When I run the DPINST in non-quiet mode it works fine. And the stranges 
thing of all is that once I have ran the DPINST in non-quiet mode, it works 
to run it in quiet mode.
I have the legacyMode flag set in the dpinst.xml.

Does anyone have a clue why this is so?

Mats Mhav 


3.Printer & Driver does not work after upgrading from ME to XP

Dear Knowledgable People,

After upgrading from ME to XP, I have been confounded with 
multiple problems.  

Today's problem is my printer & driver.

Prior to "up"grading from ME to XP, my HP OfficeJet G55 
was working fine. I then installed XP.

I have tried all the suggestions on the troubleshooters 
page (e.g. removing old drivers, downloading a new driver 
from HP, unplugging the printer cable.)  When I re-plug 
the printer cable, XP does not recognize new hardware, and 
I am thus unable to install the printer.

Please help me.  My printer was working prior to upgrading 
from ME to XP.  I think there may be some "hidden" file 
that is causing confusion, but I have no idea where to 
work.  (I've already un-intalled all software with XP, but 
that doesn't seem to do the trick).

Thanks,

Arthur 
 XXXX@XXXXX.COM 

4.Printer driver not working after ME to XP

Dear Knowledgable People,

After upgrading from ME to XP, I have been confounded with 
multiple problems.  

Today's problem is my printer & driver.

Prior to "up"grading from ME to XP, my HP OfficeJet G55 
was working fine. I then installed XP.

I have tried all the suggestions on the troubleshooters 
page (e.g. removing old drivers, downloading a new driver 
from HP, unplugging the printer cable.)  When I re-plug 
the printer cable, XP does not recognize new hardware, and 
I am thus unable to install the printer.

Please help me.  My printer was working prior to upgrading 
from ME to XP.  I think there may be some "hidden" file 
that is causing confusion, but I have no idea where to 
work.  (I've already un-intalled all software with XP, but 
that doesn't seem to do the trick).

Thanks,

Arthur 
 XXXX@XXXXX.COM 

5.Printer Driver not working after upgrading from ME to XP

Dear Knowledgable People,

After upgrading from ME to XP, I have been confounded with 
multiple problems.  

Today's problem is my printer & driver.

Prior to "up"grading from ME to XP, my HP OfficeJet G55 
was working fine. I then installed XP.

I have tried all the suggestions on the troubleshooters 
page (e.g. removing old drivers, downloading a new driver 
from HP, unplugging the printer cable.)  When I re-plug 
the printer cable, XP does not recognize new hardware, and 
I am thus unable to install the printer.

Please help me.  My printer was working prior to upgrading 
from ME to XP.  I think there may be some "hidden" file 
that is causing confusion, but I have no idea where to 
work.  (I've already un-intalled all software with XP, but 
that doesn't seem to do the trick).

Thanks,

Arthur 
 XXXX@XXXXX.COM 

6. ME to XP: Printer driver not working

7. HP 500c printer drivers by windows xp-not working

8. ME to XP; printer driver not working



Return to device driver

 

Who is online

Users browsing this forum: No registered users and 96 guest