Sample Code
Windows Driver Samples/ Toaster Sample Driver/ C++/ kmdf/ toastmon/ wdftoastmon.inx/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | ; /*++ ; ;Copyright (c) 1990-2000 Microsoft Corporation All rights Reserved ; ;Module Name: ; ; ToastMon.INF ; ;Abstract: ; INF file for installing sample WDF toastmon driver ; ;Installation Notes: ; Using Devcon: Type "devcon install wdftoastmon.inf root\toastmon" to install ;--*/ [Version] Signature= "$WINDOWS NT$" Class=Sample ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} Provider=%MSFT% DriverVer=06/16/1999,5.00.2072 CatalogFile=KmdfSamples.cat [DestinationDirs] DefaultDestDir = 12 ; ================= Class section ===================== [ClassInstall32] Addreg=SampleClassReg [SampleClassReg] HKR,,,0,%ClassName% HKR,,Icon,,-5 ; ================= Device Install section ===================== [Manufacturer] %MSFT%=MSFT,NT$ARCH$ [SourceDisksFiles] wdftoastmon.sys=1 [SourceDisksNames] 1=%DISK_NAME%, ; For Win2K because it cannot parse decorated sections. [MSFT] ; DisplayName Section DeviceId ; ----------- ------- -------- %WdfToastMon.DRVDESC%=ToastMon_Inst,root\toastmon [MSFT.NT$ARCH$] %WdfToastMon.DRVDESC%=ToastMon_Inst,root\toastmon [ToastMon_Inst.NT] CopyFiles=ToastMon.CopyFiles [ToastMon.CopyFiles] wdftoastmon.sys [ToastMon_Inst.NT.Services] AddService=wdfToastMon,0x00000002,wdfToastMon_Service [wdfToastMon_Service] DisplayName = %wdfToastMon.SVCDESC% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %12%\wdftoastmon.sys ; ;--- ToastMon_Inst Coinstaller installation ------ ; [DestinationDirs] ToastMon_Inst_CoInstaller_CopyFiles = 11 [ToastMon_Inst.NT.CoInstallers] AddReg=ToastMon_Inst_CoInstaller_AddReg CopyFiles=ToastMon_Inst_CoInstaller_CopyFiles [ToastMon_Inst_CoInstaller_AddReg] HKR,,CoInstallers32,0x00010000, "WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller" [ToastMon_Inst_CoInstaller_CopyFiles] WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll [SourceDisksFiles] WdfCoInstaller$KMDFCOINSTALLERVERSION$.dll=1 ; make sure the number matches with SourceDisksNames [ToastMon_Inst.NT.Wdf] KmdfService = wdfToastMon, wdfToastMon_wdfsect [wdfToastMon_wdfsect] KmdfLibraryVersion = $KMDFVERSION$ [Strings] MSFT = "Microsoft" ClassName = "Sample Device" WdfToastMon.SVCDESC = "Sample WDF ToastMon Service" WdfToastMon.DRVDESC = "Sample WDF ToastMon Driver" DISK_NAME = "Toastmon Install Disk" |
Our Services
-
What our customers say about us?
Read our customer testimonials to find out why our clients keep returning for their projects.
View Testimonials