Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, i am writing a mini filter that has to display i/o operations occurring on the hard drive. I got inspired by the sample program provided by Microsoft and also some samples from the web. My problem is i get status error 0x0000034 when i called FltRegisterFilter to register the filer. How do i fix that?
Posted
Comments
Richard MacCutchan 3-Jul-15 4:15am    
First check the documentation to see what error x34 indicates, and then do what is necessary to correct it.
Wshwilfried 3-Jul-15 5:22am    
I did get this from msdn STATUS_OBJECT_NAME_NOT_FOUND (The filter service key is not found in the registry.-or-The filter instance is not registered).I then updated the inf file like this but still have the same error


;;;
;;; WegsFsFilter
;;;

[Version]
Signature = "$Windows NT$"
; TODO - Change the Class and ClassGuid to match the Load Order Group value, see http://msdn.microsoft.com/en-us/windows/hardware/gg462963
Class = "ActivityMonitor" ;This is determined by the work this filter driver does
ClassGuid = {b86dff51-a31e-4bac-b3cf-e8cfe75c9fc2} ;This value is determined by the Load Order Group value
Class = "_TODO_Change_Class_appropriately_"
ClassGuid = {_TODO_Change_ClassGuid_appropriately_}
Provider = %ManufacturerName%
DriverVer = 07/01/2015,1.0.0.0
CatalogFile = WegsFsFilter.cat

[DestinationDirs]
DefaultDestDir = 12
WegsFsFilter.DriverFiles = 12 ;%windir%\system32\drivers

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %ServiceDescription%
CopyFiles = WegsFsFilter.DriverFiles

[DefaultInstall.Services]
AddService = %ServiceName%,,WegsFsFilter.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = WegsFsFilter.DriverFiles

[DefaultUninstall.Services]
DelService = %ServiceName%,0x200 ;Ensure service is stopped before deleting

;
; Services Section
;

[WegsFsFilter.Service]
DisplayName = %ServiceName%
Description = %ServiceDescription%
ServiceBinary = %12%\%DriverName%.sys ;%windir%\system32\drivers\
Dependencies = "FltMgr"
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
; TODO - Change the Load Order Group value, see http://connect.microsoft.com/site221/content/content.aspx?ContentID=2512
LoadOrderGroup = "FSFilter Activity Monitor"
LoadOrderGroup = "_TODO_Change_LoadOrderGroup_appropriately_"
AddReg = WegsFsFilter.AddRegistry

;
; Registry Modifications
;

[WegsFsFilter.AddRegistry]
HKR,,"SupportedFeatures",0x00010001,0x3
HKR,"Instances","DefaultInstance",0x00000000,%DefaultInstance%
HKR,"Instances\"%Instance1.Name%,"Altitude",0x00000000,%Instance1.Altitude%
HKR,"Instances\"%Instance1.Name%,"Flags",0x00010001,%Instance1.Flags%
HKR,"Instances\"%Instance2.Name%,"Altitude",0x00000000,%Instance2.Altitude%
HKR,"Instances\"%Instance2.Name%,"Flags",0x00010001,%Instance2.Flags%
HKR,"Instances\"%Instance3.Name%,"Altitude",0x00000000,%Instance3.Altitude%
HKR,"Instances\"%Instance3.Name%,"Flags",0x00010001,%Instance3.Flags%

;
; Copy Files
;

[WegsFsFilter.DriverFiles]
%DriverName%.sys

[SourceDisksFiles]
WegsFsFilter.sys = 1,,

[SourceDisksNames]
1 = %DiskId1%,,,

;;
;; String Section
;;

[Strings]
; TODO - Add your manufacturer
ManufacturerName = "Wega Driver"
ServiceDescription = "WegsFsFilter Mini-Filter Driver"
ServiceName = "WegsFsFilter"
DriverName = "WegsFsFilter"
DiskId1 = "WegsFsFilter Device Installation Disk"

;Instances specific information.
;DefaultInstance = "WegsFsFilter - Top Instance"
;Instance1.Name = "WegsFsFilter Middle Instance"
; TODO - Change the altitude value, see http://connect.microsoft.com/site221/content/content.aspx?ContentID=2512
;Instance1.Altitude = "370030"
;Instance.Altitude = "_TODO_Change_Altitude_appropriately_"
;Instance1.Flags = 0x0 ; Allow all attachments

DefaultInstance = "WegsFsFilter - Top Instance"
Instance1.Name = "WegsFsFilter - Middle Instance"
Instance1.Altitude = "370000"
Instance1.Flags = 0x1 ; Suppress automatic attachments

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900