Sample Code
Windows Driver Samples/ Sensors Geolocation Sample Driver (UMDF Version 1)/ C++/ SensorsGeolocationDriverSample.inf/
; ; SensorsGeolocationDriverSample.inf ; [Version] Signature = "$Windows NT$" Class = Sensor ClassGuid = {5175D334-C371-4806-B3BA-71FD53C9258D} Provider = %MSFT% DriverVer = 07/25/2008,0.0.0.1 CatalogFile = SensorsGeolocationDriverSample.Cat ; =================== Manufacturer/Models sections ======================= [Manufacturer] %MSFT% = Microsoft,NT$ARCH$ [Microsoft.NT$ARCH$] %SensorsGeolocationDriverSample.DeviceDesc% = SensorsGeolocationDriverSample_Install,Sensors\SensorsGeolocationDriverSample ; =================== Sensors Service Driver Device ================================== [SensorsGeolocationDriverSample_Install.NT] CopyFiles = UMDriverCopy AddProperty = DriverPropertiesSection [SensorsGeolocationDriverSample_Install.NT.hw] [SensorsGeolocationDriverSample_Install.NT.Services] AddService = WUDFRd,0x000001fa,WUDFRD_ServiceInstall [SensorsGeolocationDriverSample_Install.NT.CoInstallers] AddReg = WUDF_CoInstallers_AddReg CopyFiles = WUDF_CoInstallers_CopyFiles [SensorsGeolocationDriverSample_Install.NT.Wdf] UmdfService = SensorsGeolocationDriverSample,UMDFSensorsGeolocationDriverSample_Install UmdfServiceOrder = SensorsGeolocationDriverSample UmdfImpersonationLevel = Impersonation ; =================== UMDF Service Install section =================== [UMDFSensorsGeolocationDriverSample_Install] UmdfLibraryVersion = $UMDFVERSION$ ServiceBinary = %12%\UMDF\SensorsGeolocationDriverSample.dll DriverCLSID = {ceeb6d87-3f96-4cc8-9f46-369939171dc7} [WUDFRD_ServiceInstall] DisplayName = %WudfRdDisplayName% ServiceType = 1 StartType = 3 ErrorControl = 1 ServiceBinary = %12%\WUDFRd.sys LoadOrderGroup = Base [SourceDisksFiles] SensorsGeolocationDriverSample.dll = 1 WudfUpdate_$UMDFCOINSTALLERVERSION$.dll = 1 [SourceDisksNames] 1 = %MediaDescription% [WUDF_CoInstallers_AddReg] HKR,,CoInstallers32,0x00010000,"WUDFCoInstaller.dll" [WUDF_CoInstallers_CopyFiles] WudfUpdate_$UMDFCOINSTALLERVERSION$.dll [DestinationDirs] UMDriverCopy = 12,UMDF CoInstallers_CopyFiles = 11 [UMDriverCopy] SensorsGeolocationDriverSample.dll,,,0x00004000 ; =================== Driver Property section =================== [DriverPropertiesSection] DeviceIcon,,,,"%SystemRoot%\system32\sensorscpl.dll,-1000" ; =================== Generic ================================== [Strings] MSFT = "Microsoft" MediaDescription = "Sensors Geolocation Driver Sample Installation Media" ClassName = "Sensors Geolocation Driver Sample" WudfRdDisplayName = "Windows Driver Foundation - User-mode Driver Framework Reflector" SensorsGeolocationDriverSample.DeviceDesc = "Geolocation Sensor"
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