Sample Code

Windows Driver Samples/ Kernel mode display-only miniport driver (KMDOD) sample/ C++/ Sample/ sampledisplay.inf/

;++
;
; Copyright (c) 2011 Microsoft Corporation
;
; Module Name:
;
;    SampleDisplay.inf
;
; Abstract:
;
;    Inf file for Kernel mode display only sample driver
;
;--

[Version]
Signature = "$Windows NT$"
Class=Display
ClassGUID={4d36e968-e325-11ce-bfc1-08002be10318}
Provider=%MS%
DriverVer= 03/15/2011, 0.03.15.0011
CatalogFile=SampleDisplay.cat

[DestinationDirs]
KDODSamp.Files = 12

[SourceDisksNames]
0=%Desc_Sample%

[SourceDisksNames.ia64]

[SourceDisksFiles]
SampleDisplay.sys=0

[SourceDisksNames.ia64]


[Manufacturer]
%MS%=MS,NTamd64,NTarm

[MS]
;
;	Allow the driver to be loaded on VGA and XGA
;
"Kernel mode display only sample driver" = KDODSamp_Inst, PCI\CC_0300
"Kernel mode display only sample driver" = KDODSamp_Inst, PCI\CC_0301

[MS.NTamd64]
;
;	Allow the driver to be loaded on VGA and XGA
;
"Kernel mode display only sample driver" = KDODSamp_Inst, PCI\CC_0300
"Kernel mode display only sample driver" = KDODSamp_Inst, PCI\CC_0301


[MS.NTarm]
;
;	Allow the driver to be loaded on NVIDIA TEGRA
;
"Kernel mode display only sample driver" = KDODSamp_Inst, ACPI\NVD_GFX
"Kernel mode display only sample driver" = KDODSamp_Inst, ACPI\NVD0001


[KDODSamp_Inst]
Include=msdv.inf
FeatureScore=F9
CopyFiles = KDODSamp.Files
AddReg = KDODSamp_SoftwareDeviceSettings

;
;   Install driver service
;
[KDODSamp_Inst.Services]
AddService = KDODSamp,0x00000002,KDODSamp_Service_Inst,

[KDODSamp_Service_Inst]
ServiceType = %SERVICE_KERNEL_DRIVER%
StartType = %SERVICE_DEMAND_START%
ErrorControl = %SERVICE_ERROR_IGNORE%
ServiceBinary = %12%\SampleDisplay.sys

;
;   Display Adapter Specific Settings
;
[KDODSamp.SoftwareSettings]
AddReg = KDODSamp_SoftwareDeviceSettings

[KDODSamp_SoftwareDeviceSettings]
HKR,, VgaCompatible,               %REG_DWORD%, 0

[KDODSamp.Files]
SampleDisplay.sys

[KDODSamp_EventLog_Inst]
AddReg = KDODSamp_EventLog_Inst.AddReg

[KDODSamp_EventLog_Inst.AddReg]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll"
HKR,,TypesSupported,%REG_DWORD%,7


[Strings]

;  *******Localizable Strings*******
MS= "Microsoft"
Desc_Sample = "Data"

;  *******Non Localizable Strings*******

SERVICE_BOOT_START = 0x0
SERVICE_SYSTEM_START = 0x1
SERVICE_AUTO_START = 0x2
SERVICE_DEMAND_START = 0x3
SERVICE_DISABLED = 0x4

SERVICE_KERNEL_DRIVER = 0x1
SERVICE_ERROR_IGNORE = 0x0
SERVICE_ERROR_NORMAL = 0x1
SERVICE_ERROR_SEVERE = 0x2
SERVICE_ERROR_CRITICAL = 0x3

REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ = 0x00020000
REG_DWORD = 0x00010001

Our Services

  • What our customers say about us?

© 2011-2024 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS