Custom Print driver error troubleshooting invalid handle and module not found

Smitha Challa 31 Reputation points
2022-05-02T14:27:58.81+00:00

This is our INF File

[Version]
Signature="$Windows NT$"
LayoutFile=ntprint.inf
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
Provider=%PF%
DriverVer = 05/13/2022,9.30.28.734
catalogfile = INFOPRINT.cat

 ; Manufacturer Section  
 ;  
 ;This section lists all of the manufacturers   
 ; that we will display in the Dialog box  
    
      
 ;  
 ; Model sections.   
 ;   
 ; Each section here corresponds with an entry listed in the  
 ; [Manufacturer] section, above. The models will be displayed in the order  
 ; that they appear in the INF file.  
 ;  
      
 ;[TRUPRO]  
; "INFO-PRINT" = DRV_INSTALL  
      
; [TRUPRO.NTx86]  
 ;"INFO-PRINT" = DRV_INSTALL  
      
; [TRUPRO.NTamd64]  
 ;"INFO-PRINT" = DRV_INSTALL  
      
 ;[TRUPRO.NTia64]  
; "INFO-PRINT" = DRV_INSTALL  
      
  
      
 ;  
 ; Installer Sections  
 ;  
 ; These sections control file installation, and reference all files that  
 ; need to be copied. The section name will be assumed to be the driver  
 ; file, unless there is an explicit DriverFile section listed.  
 ;  
      
 [DefaultInstall.NTamd64]  
 CopyFiles=@PFIP.GPD  
 CopyFiles=@PFIP.INI  
 CopyFiles=PFPRINTPATh  
 DataFile=PFIP.GPD  
 DataSection=UNIDRV_DATA  
  
      
      
 [DefaultInstall.NTx86]  
 CopyFiles=@PFIP.GPD  
 CopyFiles=@PFIP.INI  
 CopyFiles=PFPRINTPATh  
 DataFile=PFIP.GPD  
 DataSection=UNIDRV_DATA  
   
      
      
 ; Copy Sections  
 ;  
 ; Lists of files that are actually copied. These sections are referenced  
 ; from the installer sections, above. Only create a section if it contains  
 ; two or more files (if we only copy a single file, identify it in the  
 ; installer section, using the @filename notation) or if it's a color  
 ; profile (since the DestinationDirs can only handle sections, and not  
 ; individual files).  
 ;  
      
 [PFPRINTPATh]  
 PFPRINT.DLL  
      
      
 ;  
 ; Data Sections  
 ;  
      
 ; These sections contain data that is shared between devices.  
 ;  
      
      
      
 ;  
 ;  Location of source files not in Layout.inf.  
 ;  
      
 [SourceDisksNames]  
1 = "%CWIN%"  
  
   
[SourceDisksFiles.x86]  
PFPRINT.dll    = 1,,x86  
  
[SourceDisksFiles.amd64]  
PFPRINT.dll    = 1,,x64  
      
  
   
      
 [SourceDisksFiles]  
 PFIP.INI = 1  
 pfip.GPD = 1  
      
 ;  
 ; Call SetupSetDirectoryId with 66000 to set the target directory at runtime  
 ; (depending on which environment drivers are getting installed)  
 ;  
      
 [DestinationDirs]  
 DefaultDestDir=66000  
      
 ;  
 ; Localizable Strings  
 ;  
 [Strings]  
 PF = "TRUPRO"  
 CWIN = "C:\SOurce\PFPrintPackage\"  

Generate catalogfile and sign the driver

c:\Program Files (x86)\Windows Kits\10\bin\x86>Inf2Cat.exe /driver:"C:\source\myinfo" /os:8_X64,8_X86,  
Server8_X64,Server2008R2_X64,7_X64,7_X86,Server2008_X64,Server2008_X86,Vista_X64,Vista_X86,Server2003_X64,  
Server2003_X86,XP_X64,XP_X86,2000,10_X86,10_X64,Server10_X64,Server2016_X64  
..............................  
Signability test complete.  
  
Errors:  
None  
  
Warnings:  
22.9.3: Missing hardware ID (cannot have just compatible ID) in line my-info-p=drv_install in section [pf]   
of myinfo\myinfop.inf  
22.9.3: Missing hardware ID (cannot have just compatible ID) in line my-info-p=drv_install in section [pf.ntx86]   
of myinfo\myinfop.inf  
22.9.3: Missing hardware ID (cannot have just compatible ID) in line my-info-p=drv_install in section [pf.ntamd64]  
 of myinfo\myinfop.inf  
  
Catalog generation complete.  
C:\source\myinfo\myinforp.cat  
  
c:\Program Files (x86)\Windows Kits\10\bin\x86>cd "c:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64"  
  
c:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64>signtool.exe sign /f C:\Users\charlie\Desktop\Version\Sign.pfx  
 /p sonatina3!! /fd SHA1 C:\source\myinfo\myinforp.cat  
Done Adding Additional Store  
Successfully signed: C:\source\myinfo\myinforp.cat  
  
c:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64>  
c:\Program Files (x86)\Windows Kits\10\bin\10.0.22000.0\x64>  

Now when I install the driver..this is the error I am getting. Can someone please help me?

windows server 2012

198286-image.png

windows server 2016

198230-image.png

Windows for business Windows Server User experience Print jobs
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leila Kong 3,706 Reputation points
    2022-05-31T03:23:03.357+00:00

    Hello @Smitha Challa ,

    Thanks for your query.

    This print error may be permission related. What about log on with another administrator with full privileges? Please also check if it's a driver or device issue.

    Reference:
    https://social.technet.microsoft.com/Forums/en-US/3dcd3023-e7df-4d2a-8150-86b637d0929b/test-page-failed-to-print-would-you-like-to?forum=winserverprint

    Best regards,
    Leila

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.