;;; ;;; Dropbox minifilter ;;; ; MSDN Documentation about INF files: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install ; Everything you need to know about these fields should be there. [Version] Signature = "$Windows NT$" Class = HSM ClassGuid = {d546500a-2aeb-45f6-9482-f4b1799c3177} Provider = %ManufacturerName% DriverVer = 09/14/2023,1.0.19.0 CatalogFile = Dropbox.cat PnpLockDown = 1 [DestinationDirs] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-destinationdirs-section ; Dir IDs: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/using-dirids ; 12 = Drivers directory. This is equivalent to %SystemRoot%\system32\drivers for Windows 2000 and later versions of Windows. ; 11 = System directory. This is equivalent to %SystemRoot%\system32 for Windows 2000 and later versions of Windows.. DefaultDestDir = 12 ;%SystemRoot%\system32\drivers MiniFilter.DriverFiles = 12 ;%SystemRoot%\system32\drivers DbxSvc.Files = 11 ;%SystemRoot%\system32 ;; ;; Default install sections (NTamd64) ;; [DefaultInstall.NTamd64] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-defaultinstall-section OptionDesc = %ServiceDescription% CopyFiles = MiniFilter.DriverFiles CopyFiles = DbxSvc.Files [DefaultInstall.NTamd64.Services] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-defaultinstall-services-section ; MSDN page for AddService: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-addservice-directive ; Flags: 0x00000800 (SPSVCSINST_STARTSERVICE) - Start the service after the service is installed ; Flags: 0x00020000 (SPSVCINST_NOCLOBBER_FAILUREACTIONS) - Do not attempt to overwrite existing recovery settings AddService = %ServiceName%,0x00020800,DbxSvc.Service,DbxSvc.EventLog,Application ;; ;; Default uninstall sections (NTamd64) ;; [DefaultUninstall.NTamd64] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-delfiles-directive LegacyUninstall = 1 DelFiles = MiniFilter.DriverFiles DelFiles = MiniFilter.ExtraDriverFiles DelFiles = DbxSvc.Files [DefaultUninstall.NTamd64.Services] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-delservice-directive ; Flags: 0x00000200 (SPSVCINST_STOPSERVICE) - Stop the service before deleting it. DelService = %DriverName%,0x200 ;Ensure driver is stopped before deleting DelService = %ServiceName%,0x200 ;Ensure service is stopped before deleting ;; ;; Default install sections (NTx86) ;; [DefaultInstall.NTx86] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-defaultinstall-section OptionDesc = %ServiceDescription% CopyFiles = MiniFilter.DriverFiles CopyFiles = DbxSvc.Files [DefaultInstall.NTx86.Services] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-defaultinstall-services-section ; MSDN page for AddService: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-addservice-directive ; Flags: 0x00000800 (SPSVCSINST_STARTSERVICE) - Start the service after the service is installed ; Flags: 0x00020000 (SPSVCINST_NOCLOBBER_FAILUREACTIONS) - Do not attempt to overwrite existing recovery settings AddService = %ServiceName%,0x00020800,DbxSvc.Service,DbxSvc.EventLog,Application ;; ;; Default uninstall sections (NTx86) ;; [DefaultUninstall.NTx86] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-delfiles-directive LegacyUninstall = 1 DelFiles = MiniFilter.DriverFiles DelFiles = MiniFilter.ExtraDriverFiles DelFiles = DbxSvc.Files [DefaultUninstall.NTx86.Services] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-delservice-directive ; Flags: 0x00000200 (SPSVCINST_STOPSERVICE) - Stop the service before deleting it. DelService = %DriverName%,0x200 ;Ensure driver is stopped before deleting DelService = %ServiceName%,0x200 ;Ensure service is stopped before deleting ;; ;; Default install sections (NTarm64) ;; [DefaultInstall.NTarm64] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-defaultinstall-section OptionDesc = %ServiceDescription% CopyFiles = MiniFilter.DriverFiles CopyFiles = DbxSvc.Files [DefaultInstall.NTarm64.Services] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-defaultinstall-services-section ; MSDN page for AddService: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-addservice-directive ; Flags: 0x00000800 (SPSVCSINST_STARTSERVICE) - Start the service after the service is installed ; Flags: 0x00020000 (SPSVCINST_NOCLOBBER_FAILUREACTIONS) - Do not attempt to overwrite existing recovery settings AddService = %ServiceName%,0x00020800,DbxSvc.Service,DbxSvc.EventLog,Application ;; ;; Default uninstall sections (NTarm64) ;; [DefaultUninstall.NTarm64] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-delfiles-directive LegacyUninstall = 1 DelFiles = MiniFilter.DriverFiles DelFiles = MiniFilter.ExtraDriverFiles DelFiles = DbxSvc.Files [DefaultUninstall.NTarm64.Services] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-delservice-directive ; Flags: 0x00000200 (SPSVCINST_STOPSERVICE) - Stop the service before deleting it. DelService = %DriverName%,0x200 ;Ensure driver is stopped before deleting DelService = %ServiceName%,0x200 ;Ensure service is stopped before deleting ; ; Services Section ; [DbxSvc.Service] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-addservice-directive DisplayName = %ServiceName% Description = %ServiceDescription% ServiceBinary = %11%\%ServiceName%.exe ;%SystemRoot%\system32\dbxsvc.exe ServiceType = 0x00000010 ;SERVICE_WIN32_OWN_PROCESS StartType = 2 ;SERVICE_AUTO_START ErrorControl = 1 ;SERVICE_ERROR_NORMAL RequiredPrivileges = SeLoadDriverPrivilege ; ; Registry Modifications ; [DbxSvc.EventLog] AddReg = DbxSvc.EventLogRegistry [DbxSvc.EventLogRegistry] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-addreg-directive ; Flags: 0x00010001 (FLG_ADDREG_TYPE_DWORD) ; 0x00020000 (FLG_ADDREG_TYPE_EXPAND_SZ) HKR,,"EventMessageFile",0x00020000 ,"%%SystemRoot%%\system32\DbxSvc.exe" HKR,,"TypesSupported",0x00010001,0x7 ; ; Copy Files ; [MiniFilter.DriverFiles] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-copyfiles-directive ; Flags are: 0x00000004 (COPYFLG_NOVERSIONCHECK) - Ignore file versions and write over existing files in the destination directory. ; 0x00002000 (COPYFLG_NOPRUNE) - Do not delete this operation as a result of optimization. ; 0x00004000 (COPYFLG_IN_USE_RENAME) - If the source file cannot be copied because the destination file is being used, ; rename the destination file, then copy the source file to the destination file, ; and delete the renamed destination file. %DriverName%-stable.sys, %DriverName%-stable.sys, 0, 0x00006004 %DriverName%-dev.sys, %DriverName%-dev.sys, 0, 0x00006004 %DriverName%-canary.sys, %DriverName%-canary.sys, 0, 0x00006004 [MiniFilter.ExtraDriverFiles] %DriverName%.sys, %DriverName%.sys, 0, 0 [DbxSvc.Files] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-copyfiles-directive ; Flags are: 0x00000004 (COPYFLG_NOVERSIONCHECK) - Ignore file versions and write over existing files in the destination directory. ; 0x00002000 (COPYFLG_NOPRUNE) - Do not delete this operation as a result of optimization. ; 0x00004000 (COPYFLG_IN_USE_RENAME) - If the source file cannot be copied because the destination file is being used, ; rename the destination file, then copy the source file to the destination file, ; and delete the renamed destination file. %ServiceName%.exe, %ServiceName%.exe, 0, 0x00006004 [SourceDisksFiles] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-sourcedisksfiles-section ; 1 means the disk id... this is from back in the day when there were multiple installation disks.. not needed Dbx.sys = 1,, DbxSvc.exe = 1,, Dbx-dev.sys = 1,, Dbx-canary.sys = 1,, Dbx-stable.sys = 1,, [SourceDisksNames] ; MSDN page: https://msdn.microsoft.com/en-us/windows/hardware/drivers/install/inf-sourcedisksnames-section 1 = %DiskId1%,,, ;; ;; String Section ;; [Strings] ManufacturerName = "Dropbox Inc." DriverDescription = "Dropbox Mini-Filter Driver" DriverName = "dbx" DiskId1 = "Dropbox Device Installation Disk" ServiceDescription = "Dropbox Service" ServiceName = "DbxSvc"