Sample Code

Windows Driver Samples/ Toaster Sample (UMDF Version 2)/ C++/ filter/ generic/ filterum.inx/

;/*++
;
;Copyright (c) Microsoft Corporation.  All rights reserved.
;
;Module Name:
;
;    filterum.INF
;
;--*/

[Version]
Signature="$WINDOWS NT$"
Class=TOASTER
ClassGuid={B85B7C50-6A01-11d2-B841-00C04FAD5171}
Provider=%MSFT%
DriverVer=06/16/1999,5.00.2064
CatalogFile=wudf.cat

[DestinationDirs]
DefaultDestDir = 12

; ================= Class section =====================

[ClassInstall32]
Addreg=ToasterClassReg     

[ToasterClassReg]
HKR,,,0,%ClassName%
HKR,,Icon,,100
HKR,,DeviceCharacteristics,0x10001,0x100     ;Use same security checks on relative opens
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)" ;Allow generic all access to system and built-in Admin.
                                             ;This one overrides the security set by the driver

;*****************************************
; Toaster Device  Install Section
;*****************************************

[Manufacturer]
%StdMfg%=Standard,NT$ARCH$


; For XP and later
[Standard.NT$ARCH$]
%WdfSimpleDevice.DeviceDesc%=Toaster_Device, root\toaster

[Toaster_Device.NT]
CopyFiles=UMDriverCopy

; ---------------- file copy
[UMDriverCopy]
wdfsimpleum.dll
filterum.dll

[DestinationDirs]
UMDriverCopy=12,UMDF ; copy to drivers/umdf

[SourceDisksNames]
1 = %DiskId1%,,,""

[SourceDisksFiles]
wdfsimpleum.dll  = 1,,
filterum.dll  = 1,,

;-------------- Service installation

[Toaster_Device.NT.Services]
AddService=WUDFRd,0x000001fa,WUDFRD_ServiceInstall

[WUDFRD_ServiceInstall]
DisplayName = %WudfRdDisplayName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\WUDFRd.sys

;--- WDF  installation ------
[Toaster_Device.NT.CoInstallers]
AddReg=CoInstallers_AddReg

[CoInstallers_AddReg]
HKR,,CoInstallers32,0x00010000,"WUDFCoinstaller.dll"

;-------------- WDF specific section -------------
[Toaster_Device.NT.Wdf]
UmdfService=wdfsimpleum, wdfsimple_Install
UmdfService=filterum, filter_Install
UmdfServiceOrder=wdfsimpleum, filterum

[wdfsimple_Install]
UmdfLibraryVersion=$UMDFVERSION$
ServiceBinary=%12%\UMDF\wdfsimpleum.dll

[filter_Install]
UmdfLibraryVersion=$UMDFVERSION$
ServiceBinary=%12%\UMDF\filterum.dll

[Strings]
SPSVCINST_ASSOCSERVICE= 0x00000002
MSFT = "Microsoft"
StdMfg = "(Standard system devices)"
DiskId1 = "WDF Sample Toaster Installation Disk #1"
WdfSimpleDevice.DeviceDesc = "Sample WDF Toaster Service + Filter"
ClassName = "Toaster"
WudfRdDisplayName="Windows Driver Foundation - User-mode Driver Framework Reflector"

Our Services

  • What our customers say about us?

© 2011-2025 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