Sample Code
Windows Driver Samples/ WDF Hybrid 1394 Virtual Device Sample Driver/ C++/ kmdf/ wdf1394vdev.inx/
;/*++ ; ;Copyright (c) Microsoft Corporation. All rights reserved. ; ;Module Name: ; ; wdf1394vdev.INF ; ;Abstract: ; INF file for installing 1394 virtual device hybrid w/ the umdf component ; as an upper filter. ; ; ;--*/ [Version] signature="$CHICAGO$" Class=Sample ClassGuid={78A1C341-4539-11d3-B88D-00C04FAD5171} Provider=%MSFTWDF% CatalogFile=KmdfSamples.cat DriverVer=06/01/2007,0.0.0.1 [SourceDisksNames] 1 = %MediaDescription%,,,"" [SourceDisksFiles] kmdf1394vdev.sys=1 umdf1394vdev.dll=1 WudfUpdate_$UMDFCOINSTALLERVERSION$.dll=1 wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll=1 [DestinationDirs] DefaultDestDir = 12 UMDF1394VDEV.CopyDriver=12,UMDF ; =================== Class Sections =========================== [ClassInstall32] Addreg=1394DevicesClassReg [1394DevicesClassReg] HKR,,,,%ClassName% HKR,,Icon,,-21 HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)" ; ACL allowing System and Admin [Manufacturer] %MSFTWDF%=Microsoft,NT$ARCH$ [ControlFlags] ExcludeFromSelect=* ; =================== Microsoft ======================== [Microsoft.NT$ARCH$] %kmdf1394vdevDeviceDesc%=KMDF1394VDEV,V1394\1394_VIRTUAL_DEVICE ; =================== 1394 Hybrid Installation ====================== [KMDF1394VDEV.NT] CopyFiles=KMDF1394VDEV.CopyDriver, UMDF1394VDEV.CopyDriver [KMDF1394VDEV.NT.HW] AddReg=kmdf1394vdev_Device_AddReg [KMDF1394VDEV.NT.CoInstallers] AddReg=CoInstaller_AddReg CopyFiles=CoInstaller_CopyFiles [KMDF1394VDEV.NT.Services] AddService=KMDF1394VDEV,0x00000002,KMDF1394VDEV_ServiceInstall AddService=WUDFRd,,WUDFRd_ServiceInstall [KMDF1394VDEV.NT.Wdf] KmdfService = KMDF1394VDEV, KMDF1394VDEV_wdfsect UmdfService = "umdf1394vdev", umdf1394vdev_Install UmdfServiceOrder = umdf1394vdev [kmdf1394vdev_Device_AddReg] ; Load the redirector as an upperfilter on this specific device. ; 0x00010008 - FLG_ADDREG_TYPE_MULTI_SZ | FLG_ADDREG_APPEND HKR,,"UpperFilters",0x00010008,"WUDFRd" [CoInstaller_CopyFiles] wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll WudfUpdate_$UMDFCOINSTALLERVERSION$.dll [CoInstaller_AddReg] HKR,,CoInstallers32,0x00010000,"wdfcoinstaller$KMDFCOINSTALLERVERSION$.dll,WdfCoInstaller","WUDFUpdate_$UMDFCOINSTALLERVERSION$.dll" [KMDF1394VDEV_ServiceInstall] DisplayName=%kmdf1394vdevDeviceDesc% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\kmdf1394vdev.sys [WUDFRd_ServiceInstall] DisplayName=%WudfRd_SvcDesc% ServiceType=1 StartType=3 ErrorControl=1 ServiceBinary=%12%\WUDFRd.sys [KMDF1394VDEV.CopyDriver] kmdf1394vdev.sys [UMDF1394VDEV.CopyDriver] umdf1394vdev.dll ;================ WDF installation ================== [umdf1394vdev_Install] UmdfLibraryVersion=$UMDFVERSION$ DriverCLSID= "{d202f373-3aae-45ee-ae73-45766cef14b4}" ServiceBinary= "%12%\UMDF\umdf1394vdev.dll" [KMDF1394VDEV_wdfsect] KmdfLibraryVersion = $KMDFVERSION$ [DestinationDirs] CoInstaller_CopyFiles = 11 ; ; Strings ; [Strings] MSFTWDF ="Microsoft (WDF)" MediaDescription ="Microsoft Sample Driver Installation Media" ClassName="Sample Device" WudfRd_SvcDesc ="WDF Hybrid Reflector" kmdf1394vdevDeviceDesc ="WDF Hybrid 1394 Virtual Device"
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