driver - 可签名性未通过 Windows 驱动程序测试
问题描述
这是.inf 文件。它只是来自 https://github.com/microsoft/Windows-driver-samples/tree/master/print/OEM%20Printer%20Customization%20Plug-in%20Samples/C%2B%2B/bitmap的示例
我在 C:\windows 的同一个文件夹中拥有所有 3 个文件 bitmap.DLL、bitmap.ini、bitmap.gdp。为什么它抱怨 bitmap.gdp 和 bitmap.ini
我收到此错误:
Errors:
22.9.1: bitmap.gdp in [bitmapgdp] of Driver Package1\bitmap.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
22.9.1: bitmap.ini in [bitmapini] of Driver Package1\bitmap.inf is missing or can
not be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.
; bitmap.INF
;
; INF file for bitmap Driver
; - for Windows XP (SP2), NT2003 (R2), Vista, Win7, NT2008 (x86 and x64)
;
; Copyright 2007-2010 MS
[Version]
Signature="$windows NT$"
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
Provider=MS
DriverVer=04/21/2010, 5.0.10.4211505
catalogfile = bitmapnew.cat
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Manufacturer Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Manufacturer]
"Microsoft"=Microsoft, NTx86, NTamd64, NTia64, NTarm64
[Microsoft]
"Bitmap Driver" = BITMAP
[Microsoft.NTx86]
"Bitmap Driver" = BITMAP
[Microsoft.NTamd64]
"Bitmap Driver" = BITMAP
[Microsoft.NTia64]
"Bitmap Driver" = BITMAP
[Microsoft.NTarm64]
"Bitmap Driver" = BITMAP
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Models Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[bitmapGDP]
bitmap.GDP
[bitmapINI]
bitmap.INI
[bitmapDLL]
bitmap.DLL
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Install Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[BITMAP]
CopyFiles=bitmapGDP,bitmapINI,bitmapDLL
DataSection=UNIDRV_DATA
Include=NTPRINT.INF
Needs=UNIDRV.OEM,UNIDRV_DATA
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Source Media Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[DestinationDirs]
DefaultDestDir=66000
[SourceDisksFiles]
bitmap.DLL = 1,
bitmap.GDP = 1,
bitmap.INI = 1
[SourceDisksNames]
1 = %DiskName%,
2= %CWIN%
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Control Flags Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Strings Section
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[Strings]
DiskName="Disk Drive",
CWIN = "C:\Windows\bitmap"
解决方案
推荐阅读
- c - C中的strcmp()函数
- php - 在 Apache 中禁用尾部斜杠重定向,以便 POST 请求与 index.php 一起使用
- laravel - 无法记住 Laravel 中的 Auth 会话
- c# - 在 C# => 在控制台应用程序中执行类库
- python - 如何使用 Python 将“阶梯函数”曲线更改为平滑线?
- azure - iPhone作为物联网设备的网关——Azure IOT HUB
- amazon-ec2 - Ansible:ec2_eni 无法附加接口
- c# - 我正在为我的 C# 项目寻找 ORM。我试过 ADO.net 但我不太明白
- javascript - jQuery:如何获取标题的动态高度
- linux - 英特尔引脚内存管理