Tech Support > Microsoft Windows > Drivers > Re: Please help: Printer installation "could not be completed" despite printer driver files got copied
Re: Please help: Printer installation "could not be completed" despite printer driver files got copied
Posted by Michael Leung on September 8th, 2003


Dan,

Thank heaps for your help.
I am wondering what is the minimum set of functions I will need
to implement in order to avoid the error message. What are other
things that need to be in place apart from those that you mentioned ?
Is this documented in the DDK docs or is it undocumented ?

Many Thanks,
Michael.

"Dan Negrescu" <dnegrescu@hotmail.com> wrote in message
news:%23BWvo7edDHA.416@tk2msftngp13.phx.gbl...


Posted by Dan Negrescu on September 8th, 2003


Michael,

I'm not aware of any document describing this.
AFAIK the driver has to implement the following functions:

1. Graphis module driver entry point
DrvEnableDriver if it's a KERNEL mode driver
or
DllEntryPoint and DrvQueryDriverInfo if a USER mode driver

2. Unload graphis module entry point
DrvDisableDriver

3. DC creation/deletetion related functions:
DrvEnablePDEV
DrvCompletePDEV
DrvDisablePDEV
and maybe
DrvResetPDEV
DrvEnableSurface
DrvDisableSurface

4. DEVMODE and DeviceCaps related functions:
DrvDeviceCapabilities
DrvDocumentPropertySheets
and maybe
DrvDevicePropertySheets
DrvPrinterEvent

As you can see, most of the non-drawing/spooling functions must be implemented
before you can actually install the driver in the system (and start testing/debugging it)

Regards,
Dan.