question

SmithaChalla-1680 avatar image
0 Votes"
SmithaChalla-1680 asked SmithaChalla-1680 commented

Error 1297 (NTarm64) Device driver does not install on any devices, use primitive driver if this is intended.

This is my inf file

Error 1297 (NTarm64) Device driver does not install on any devices, use primitive driver if this is intended.
I am trying to do a windows virtual print driver.
I am using VS2019 with WDK, SDK 10.0.19041.685.
This might be have something to do with primitive/non primitive driver. Please suggest. This world of driver continues to be a challenge for me.

I found this forum but I can't seem to understnad much of it
[Version]
Signature="$windows NT$"
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
Provider=CAPTURETECH
DriverVer=04/21/2010, 6.0.10.4211505
catalogfile = cptech.cat

 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Manufacturer Section
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [Manufacturer]
 "CAPTURETECH" = CT, NTx86, NTamd64
    
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Models Section
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [CT]
 "CT-INFO" = DRV_INSTALL
    
 [CT.NTx86]
 "CT-INFO" = DRV_INSTALL
    
 [CT.NTamd64]
 "CT-INFO" = DRV_INSTALL
    
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Install Section
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [DRV_INSTALL]
 CopyFiles=@CTIP.GPD,@CTIP.INI,@CTINFO.DLL
 DataSection=UNIDRV_DATA
 DataFile=CTIP.GPD
 Include=CAPTURE-TECH.INF
 Needs=UNIDRV.OEM,UNIDRV_DATA
    
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Source Media Section
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [DestinationDirs]
 DefaultDestDir=66000
   = 100,cptech\ia64
    
    
 [SourceDisksFiles]
 CTINFO.DLL = 1
 CTIP.INI = 1
 CTIP.GPD = 1
    
    
 [SourceDisksNames]
 ;1 = %DiskName%,
 1 = %CWIN%
 2 = %CWIN%,,,INIS
 3 = %CWIN%,,,GDPS
 ;4 = %CWIN%,,,\DLLS
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Control Flags Section
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    
    
    
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ; Strings Section
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 [Strings]
    
 CWIN = "C:\Source\CTINFo\"
windows-server-print
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered SmithaChalla-1680 commented

Hi there,

This is caused by the new "Primitive Drivers" concept in Windows 10 1903. The purpose is to explicitly model drivers that aren't actually related to a device. See Microsoft Documentation on Primitive Drivers for details https://docs.microsoft.com/en-us/windows-hardware/drivers/develop/creating-a-primitive-driver

Your inf contains none of the sections for which there are instructions for migration, but it has the Manufacturer section, which is not allowed for primitive drivers. Remove it and the validation may succeed.



--If the reply is helpful, please Upvote and Accept it as an answer--

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you.
I am not a driver developer just kinda like a fish thrown into this water.
I am using github samples for windows sample drivers bitmap.inf specifically.


Do I need a WindowsKernelModeDriver10.0 or WindowsApplicationForDrivers10.0? All I am trying is a signed virtual print driver which is a Point and print driver. I has its own port monitor.




0 Votes 0 ·

Primitive driver technology is starting from Windows 10 version 1903. The customer is still using windows server 2016 version 1607 build number 14393. Does than mean I need to use an older SDK?

0 Votes 0 ·