A problem of installing minifilter "minispy" which stored in IFS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi, all.
Please give any advise about the trouble as bellow.

=Problem=
After building the sample and installing driver with INF, the user mode app.
MINISPY.EXE generate an error as bellow.

=Error String=
Connecting to filter's port...
Could not connect ot filter:0x80070002

=Procedure=
1.Build the sample with Windows XP Free Build Environment.
2.Copy the compiled files (MINISPY.SYS and MINISPY.EXE) and copy the INF
file to the labo machine.
3.Right-click MINISPY.INF and execute "Install"
4.Confirm the SYS file is copied and the registry is written.
5.Execute the MINISPY.EXE.

=Test Environment=
Microsoft IFS Development Kit for Windows 3790.1830
Test Machine:Windows XP SP1
 
8007 class errors are windows error numbers. So it's error 2. Type in a command prompt

net helpmsg 2

Which says something can't find a file. Did you check step 4.
 
Thank you for your reply. I check it again but the file MINISPY.SYS is into
dir "Windows\System32\Drivers\".
Should I check another file ?
 
You are the one compiling the program. Run it in a debugger and find out.

All we know is that something can't find a file. Don't assume it is the exe or the sys that is generating the message, it can be but it may be a component they called. It may be the sys. Is it supposed to be in that folder. Often sample program/driver code have the sys and exe in the same folder.

Who knows - it's your program.

--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
Shinogi Syota said:
Thank you for your reply. I check it again but the file MINISPY.SYS is into
dir "Windows\System32\Drivers\".
Should I check another file ?
 
I'm sorry to not explain about "MINISPY.EXE" and "MINISPY.SYS".
Those file is contained at the sample of Microsoft IFS Development Kit for
Windows.
There is no *readme.txt* or another document, so I don't know what it is do.

=Test=
After installing the driver with INF, I copy the file "minispy.sys" and
"minispy.exe" into the
dir "Windows\System32\Drivers\".
And run the EXE.
=Result=
The same error occurs.

=Question=
1.How can I confirm if my driver is loaded ?
 
I attach the INF file.

===========minispy.inf==============
;;;
;;; Minispy
;;;
;;;
;;; Copyright (c) 2001, Microsoft Corporation
;;;

[Version]
Signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined
by the work this filter driver does
Provider = %Msft%
DriverVer = 10/09/2001,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
Minispy.DriverFiles = 12
;%windir%\system32\drivers
Minispy.UserFiles = 10,FltMgr ;%windir%\FltMgr

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %MinispyServiceDesc%
CopyFiles = Minispy.DriverFiles, Minispy.UserFiles

[DefaultInstall.Services]
AddService = %MinispyServiceName%,,Minispy.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = Minispy.DriverFiles, Minispy.UserFiles



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

;
; Services Section
;

[Minispy.Service]
DisplayName = %MinispyServiceName%
Description = %MinispyServiceDesc%
ServiceBinary = %12%\minispy.sys ;%windir%\system32\drivers\minispy.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Activity Monitor"
AddReg = Minispy.AddRegistry
Dependencies = FltMgr

;
; Registry Modifications
;

[Minispy.AddRegistry]
HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegAltitudeValueName%,0x00000000,%Instance2.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegFlagsValueName%,0x00010001,%Instance2.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegAltitudeValueName%,0x00000000,%Instance3.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegFlagsValueName%,0x00010001,%Instance3.Flags%

;
; Copy Files
;

[Minispy.DriverFiles]
minispy.sys

[Minispy.UserFiles]
minispy.exe

;;
;; String Section
;;

[Strings]
Msft = "Microsoft Corporation"
MinispyServiceDesc = "Minispy mini-filter driver"
MinispyServiceName = "Minispy"
RegInstancesSubkeyName = "Instances"
RegDefaultInstanceValueName = "DefaultInstance"
RegAltitudeValueName = "Altitude"
RegFlagsValueName = "Flags"

;Instances specific information.
DefaultInstance = "Minispy - Top Instance"
Instance1.Name = "Minispy - Middle Instance"
Instance1.Altitude = "370000"
Instance1.Flags = 0x1 ; Suppress automatic attachments
Instance2.Name = "Minispy - Bottom Instance"
Instance2.Altitude = "365000"
Instance2.Flags = 0x1 ; Suppress automatic attachments
Instance3.Name = "Minispy - Top Instance"
Instance3.Altitude = "385000"
Instance3.Flags = 0x1 ; Suppress automatic attachments

==================EOF=========================
 
I think this driver is not loaded.
Because I set this line after into the function DriverEntry().

DbgPrint("MINISPY:Entering");

But this is not logged. So I think the driver does not loaded.
Isn't it ?

Could you explain me what mean to install driver with INF file ?
Just register it ?
--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


Shinogi Syota said:
I attach the INF file.

===========minispy.inf==============
;;;
;;; Minispy
;;;
;;;
;;; Copyright (c) 2001, Microsoft Corporation
;;;

[Version]
Signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined
by the work this filter driver does
Provider = %Msft%
DriverVer = 10/09/2001,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
Minispy.DriverFiles = 12
;%windir%\system32\drivers
Minispy.UserFiles = 10,FltMgr ;%windir%\FltMgr

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %MinispyServiceDesc%
CopyFiles = Minispy.DriverFiles, Minispy.UserFiles

[DefaultInstall.Services]
AddService = %MinispyServiceName%,,Minispy.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = Minispy.DriverFiles, Minispy.UserFiles



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

;
; Services Section
;

[Minispy.Service]
DisplayName = %MinispyServiceName%
Description = %MinispyServiceDesc%
ServiceBinary = %12%\minispy.sys ;%windir%\system32\drivers\minispy.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Activity Monitor"
AddReg = Minispy.AddRegistry
Dependencies = FltMgr

;
; Registry Modifications
;

[Minispy.AddRegistry]
HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegAltitudeValueName%,0x00000000,%Instance2.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegFlagsValueName%,0x00010001,%Instance2.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegAltitudeValueName%,0x00000000,%Instance3.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegFlagsValueName%,0x00010001,%Instance3.Flags%

;
; Copy Files
;

[Minispy.DriverFiles]
minispy.sys

[Minispy.UserFiles]
minispy.exe

;;
;; String Section
;;

[Strings]
Msft = "Microsoft Corporation"
MinispyServiceDesc = "Minispy mini-filter driver"
MinispyServiceName = "Minispy"
RegInstancesSubkeyName = "Instances"
RegDefaultInstanceValueName = "DefaultInstance"
RegAltitudeValueName = "Altitude"
RegFlagsValueName = "Flags"

;Instances specific information.
DefaultInstance = "Minispy - Top Instance"
Instance1.Name = "Minispy - Middle Instance"
Instance1.Altitude = "370000"
Instance1.Flags = 0x1 ; Suppress automatic attachments
Instance2.Name = "Minispy - Bottom Instance"
Instance2.Altitude = "365000"
Instance2.Flags = 0x1 ; Suppress automatic attachments
Instance3.Name = "Minispy - Top Instance"
Instance3.Altitude = "385000"
Instance3.Flags = 0x1 ; Suppress automatic attachments

==================EOF=========================


--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


David Candy said:
Post the inf file. They are text files.
 
I know why the minispy driver was not loaded. Because it was necessary to use
the command fltmc.
After the command "fltmc load minispy", the minispy.exe (user mode
application) work successful.

Thank you.
===================
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi
===================


Shinogi Syota said:
I think this driver is not loaded.
Because I set this line after into the function DriverEntry().

DbgPrint("MINISPY:Entering");

But this is not logged. So I think the driver does not loaded.
Isn't it ?

Could you explain me what mean to install driver with INF file ?
Just register it ?
--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


Shinogi Syota said:
I attach the INF file.

===========minispy.inf==============
;;;
;;; Minispy
;;;
;;;
;;; Copyright (c) 2001, Microsoft Corporation
;;;

[Version]
Signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined
by the work this filter driver does
Provider = %Msft%
DriverVer = 10/09/2001,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
Minispy.DriverFiles = 12
;%windir%\system32\drivers
Minispy.UserFiles = 10,FltMgr ;%windir%\FltMgr

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %MinispyServiceDesc%
CopyFiles = Minispy.DriverFiles, Minispy.UserFiles

[DefaultInstall.Services]
AddService = %MinispyServiceName%,,Minispy.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = Minispy.DriverFiles, Minispy.UserFiles



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

;
; Services Section
;

[Minispy.Service]
DisplayName = %MinispyServiceName%
Description = %MinispyServiceDesc%
ServiceBinary = %12%\minispy.sys ;%windir%\system32\drivers\minispy.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Activity Monitor"
AddReg = Minispy.AddRegistry
Dependencies = FltMgr

;
; Registry Modifications
;

[Minispy.AddRegistry]
HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegAltitudeValueName%,0x00000000,%Instance2.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegFlagsValueName%,0x00010001,%Instance2.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegAltitudeValueName%,0x00000000,%Instance3.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegFlagsValueName%,0x00010001,%Instance3.Flags%

;
; Copy Files
;

[Minispy.DriverFiles]
minispy.sys

[Minispy.UserFiles]
minispy.exe

;;
;; String Section
;;

[Strings]
Msft = "Microsoft Corporation"
MinispyServiceDesc = "Minispy mini-filter driver"
MinispyServiceName = "Minispy"
RegInstancesSubkeyName = "Instances"
RegDefaultInstanceValueName = "DefaultInstance"
RegAltitudeValueName = "Altitude"
RegFlagsValueName = "Flags"

;Instances specific information.
DefaultInstance = "Minispy - Top Instance"
Instance1.Name = "Minispy - Middle Instance"
Instance1.Altitude = "370000"
Instance1.Flags = 0x1 ; Suppress automatic attachments
Instance2.Name = "Minispy - Bottom Instance"
Instance2.Altitude = "365000"
Instance2.Flags = 0x1 ; Suppress automatic attachments
Instance3.Name = "Minispy - Top Instance"
Instance3.Altitude = "385000"
Instance3.Flags = 0x1 ; Suppress automatic attachments

==================EOF=========================


--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


David Candy said:
Post the inf file. They are text files.
 
Get regmon and filemon and monitor your program and find what file is missing.
www.sysinternals.com

--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
Shinogi Syota said:
I think this driver is not loaded.
Because I set this line after into the function DriverEntry().

DbgPrint("MINISPY:Entering");

But this is not logged. So I think the driver does not loaded.
Isn't it ?

Could you explain me what mean to install driver with INF file ?
Just register it ?
--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


Shinogi Syota said:
I attach the INF file.

===========minispy.inf==============
;;;
;;; Minispy
;;;
;;;
;;; Copyright (c) 2001, Microsoft Corporation
;;;

[Version]
Signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined
by the work this filter driver does
Provider = %Msft%
DriverVer = 10/09/2001,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
Minispy.DriverFiles = 12
;%windir%\system32\drivers
Minispy.UserFiles = 10,FltMgr ;%windir%\FltMgr

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %MinispyServiceDesc%
CopyFiles = Minispy.DriverFiles, Minispy.UserFiles

[DefaultInstall.Services]
AddService = %MinispyServiceName%,,Minispy.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = Minispy.DriverFiles, Minispy.UserFiles



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

;
; Services Section
;

[Minispy.Service]
DisplayName = %MinispyServiceName%
Description = %MinispyServiceDesc%
ServiceBinary = %12%\minispy.sys ;%windir%\system32\drivers\minispy.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Activity Monitor"
AddReg = Minispy.AddRegistry
Dependencies = FltMgr

;
; Registry Modifications
;

[Minispy.AddRegistry]
HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegAltitudeValueName%,0x00000000,%Instance2.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegFlagsValueName%,0x00010001,%Instance2.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegAltitudeValueName%,0x00000000,%Instance3.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegFlagsValueName%,0x00010001,%Instance3.Flags%

;
; Copy Files
;

[Minispy.DriverFiles]
minispy.sys

[Minispy.UserFiles]
minispy.exe

;;
;; String Section
;;

[Strings]
Msft = "Microsoft Corporation"
MinispyServiceDesc = "Minispy mini-filter driver"
MinispyServiceName = "Minispy"
RegInstancesSubkeyName = "Instances"
RegDefaultInstanceValueName = "DefaultInstance"
RegAltitudeValueName = "Altitude"
RegFlagsValueName = "Flags"

;Instances specific information.
DefaultInstance = "Minispy - Top Instance"
Instance1.Name = "Minispy - Middle Instance"
Instance1.Altitude = "370000"
Instance1.Flags = 0x1 ; Suppress automatic attachments
Instance2.Name = "Minispy - Bottom Instance"
Instance2.Altitude = "365000"
Instance2.Flags = 0x1 ; Suppress automatic attachments
Instance3.Name = "Minispy - Top Instance"
Instance3.Altitude = "385000"
Instance3.Flags = 0x1 ; Suppress automatic attachments

==================EOF=========================


--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


David Candy said:
Post the inf file. They are text files.
 
Ok, programs I see have all been GUI and have had a button to start the driver.

--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
Shinogi Syota said:
I know why the minispy driver was not loaded. Because it was necessary to use
the command fltmc.
After the command "fltmc load minispy", the minispy.exe (user mode
application) work successful.

Thank you.
===================
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi
===================


Shinogi Syota said:
I think this driver is not loaded.
Because I set this line after into the function DriverEntry().

DbgPrint("MINISPY:Entering");

But this is not logged. So I think the driver does not loaded.
Isn't it ?

Could you explain me what mean to install driver with INF file ?
Just register it ?
--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


Shinogi Syota said:
I attach the INF file.

===========minispy.inf==============
;;;
;;; Minispy
;;;
;;;
;;; Copyright (c) 2001, Microsoft Corporation
;;;

[Version]
Signature = "$Windows NT$"
Class = "ActivityMonitor" ;This is determined
by the work this filter driver does
Provider = %Msft%
DriverVer = 10/09/2001,1.0.0.0

[DestinationDirs]
DefaultDestDir = 12
Minispy.DriverFiles = 12
;%windir%\system32\drivers
Minispy.UserFiles = 10,FltMgr ;%windir%\FltMgr

;;
;; Default install sections
;;

[DefaultInstall]
OptionDesc = %MinispyServiceDesc%
CopyFiles = Minispy.DriverFiles, Minispy.UserFiles

[DefaultInstall.Services]
AddService = %MinispyServiceName%,,Minispy.Service

;;
;; Default uninstall sections
;;

[DefaultUninstall]
DelFiles = Minispy.DriverFiles, Minispy.UserFiles



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

;
; Services Section
;

[Minispy.Service]
DisplayName = %MinispyServiceName%
Description = %MinispyServiceDesc%
ServiceBinary = %12%\minispy.sys ;%windir%\system32\drivers\minispy.sys
ServiceType = 2 ;SERVICE_FILE_SYSTEM_DRIVER
StartType = 3 ;SERVICE_DEMAND_START
ErrorControl = 1 ;SERVICE_ERROR_NORMAL
LoadOrderGroup = "FSFilter Activity Monitor"
AddReg = Minispy.AddRegistry
Dependencies = FltMgr

;
; Registry Modifications
;

[Minispy.AddRegistry]
HKR,%RegInstancesSubkeyName%,%RegDefaultInstanceValueName%,0x00000000,%DefaultInstance%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegAltitudeValueName%,0x00000000,%Instance1.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance1.Name%,%RegFlagsValueName%,0x00010001,%Instance1.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegAltitudeValueName%,0x00000000,%Instance2.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance2.Name%,%RegFlagsValueName%,0x00010001,%Instance2.Flags%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegAltitudeValueName%,0x00000000,%Instance3.Altitude%
HKR,%RegInstancesSubkeyName%"\"%Instance3.Name%,%RegFlagsValueName%,0x00010001,%Instance3.Flags%

;
; Copy Files
;

[Minispy.DriverFiles]
minispy.sys

[Minispy.UserFiles]
minispy.exe

;;
;; String Section
;;

[Strings]
Msft = "Microsoft Corporation"
MinispyServiceDesc = "Minispy mini-filter driver"
MinispyServiceName = "Minispy"
RegInstancesSubkeyName = "Instances"
RegDefaultInstanceValueName = "DefaultInstance"
RegAltitudeValueName = "Altitude"
RegFlagsValueName = "Flags"

;Instances specific information.
DefaultInstance = "Minispy - Top Instance"
Instance1.Name = "Minispy - Middle Instance"
Instance1.Altitude = "370000"
Instance1.Flags = 0x1 ; Suppress automatic attachments
Instance2.Name = "Minispy - Bottom Instance"
Instance2.Altitude = "365000"
Instance2.Flags = 0x1 ; Suppress automatic attachments
Instance3.Name = "Minispy - Top Instance"
Instance3.Altitude = "385000"
Instance3.Flags = 0x1 ; Suppress automatic attachments

==================EOF=========================


--
Macnica Networks Corp.
Application Tech. 2nd Sec.
Syota Shinogi


:


Post the inf file. They are text files.
 
Back
Top