I have written a printer driver, which is installed and starts.
As it does nothing in reality, I want to load a real printer driver in:
DrvEnablePDEV with the EngLoadImage call and get the functiontable from that driver via a call to the DrvEnableDriver. To get the address of DrvEnableDriver I planned to use EngFindImageProcAddress.
I did this successfully within a display driver.
Here in a printer driver I failed so far. The codesnippet which does this job follows. Well it is stripped down a lot to the important part.
Maybe you need to specify the full path of the dll not only the file name.
Also, maybe because printer drivers can be User Mode or Kernel Mode. You wrapper shall be prepared to handle
both cases. In the case of a User Mode driver you can load it as a regular dll (LoadLibrary / GetProcAddress)
I have written a printer driver, which is installed and starts.
As it does nothing in reality, I want to load a real printer driver in:
DrvEnablePDEV with the EngLoadImage call and get the functiontable from that driver via a call to the DrvEnableDriver.
To get the address of DrvEnableDriver I planned to use EngFindImageProcAddress.
I did this successfully within a display driver.
Here in a printer driver I failed so far. The codesnippet which does this job follows. Well it is stripped down a lot
to the important part.