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



Shinogi Syota
07-09-2005, 11:12 PM
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

David Candy
07-09-2005, 11:12 PM
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.
--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
"Shinogi Syota" <Shinogi Syota@discussions.microsoft.com> wrote in message news:6FA1C572-BF30-4B77-9742-9DA1CEB94A0D@microsoft.com...
> 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

Shinogi Syota
07-09-2005, 11:12 PM
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 ?

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


"David Candy" wrote:

> 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.
> --
> --------------------------------------------------------------------------------------------------
> http://webdiary.smh.com.au/archives/_comment/001075.html
> =================================================

David Candy
07-09-2005, 11:12 PM
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" <ShinogiSyota@discussions.microsoft.com> wrote in message news:B44A4E48-F04A-4019-90C2-A5BA6DC7676A@microsoft.com...
> 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 ?
>
> --
> Macnica Networks Corp.
> Application Tech. 2nd Sec.
> Syota Shinogi
>
>
> "David Candy" wrote:
>
>> 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.
>> --
>> --------------------------------------------------------------------------------------------------
>> http://webdiary.smh.com.au/archives/_comment/001075.html
>> =================================================
>

Shinogi Syota
07-09-2005, 11:12 PM
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 ?

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


"David Candy" wrote:

> 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

David Candy
07-09-2005, 11:12 PM
Post the inf file. They are text files.

--------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
"Shinogi Syota" <ShinogiSyota@discussions.microsoft.com> wrote in message news:9A7D8172-B3CC-40E9-9DC8-F0D8B8D0EF3B@microsoft.com...
> 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 ?
>
> --
> Macnica Networks Corp.
> Application Tech. 2nd Sec.
> Syota Shinogi
>
>
> "David Candy" wrote:
>
>> 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
07-09-2005, 11:12 PM
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" wrote:

>
> Post the inf file. They are text files.
>
> --------------------------------------------------------------
> http://webdiary.smh.com.au/archives/_comment/001075.html

Shinogi Syota
07-09-2005, 11:12 PM
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" wrote:

> 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" wrote:
>[color=green]
> >
> > Post the inf file. They are text files.
> >
> > --------------------------------------------------------------
> > [url]http://webdiary.smh.com.au/archives/_comment/001075.html[/url]
>[/color]

Shinogi Syota
07-09-2005, 11:12 PM
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" wrote:

> 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" wrote:
>
> > 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" wrote:
> >[color=darkred]
> > >
> > > Post the inf file. They are text files.
> > >
> > > --------------------------------------------------------------
> > > [url]http://webdiary.smh.com.au/archives/_comment/001075.html[/url]
> >[/color]

David Candy
07-09-2005, 11:12 PM
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" <ShinogiSyota@discussions.microsoft.com> wrote in message news:0B9D7B80-F3B2-432F-AE06-FD25AACD6D20@microsoft.com...
>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" wrote:
>
>> 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" wrote:
>> [color=darkred]
>> >
>> > Post the inf file. They are text files.
>> >
>> > --------------------------------------------------------------
>> > http://webdiary.smh.com.au/archives/_comment/001075.html
>>[/color]

David Candy
07-09-2005, 11:12 PM
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" <ShinogiSyota@discussions.microsoft.com> wrote in message news:9D556855-FEE8-4500-8453-9E8EDDDC1CC8@microsoft.com...
>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" wrote:
>
>> 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" wrote:
>>
>> > 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" wrote:
>> >
>> > >
>> > > Post the inf file. They are text files.
>> > >
>> > > --------------------------------------------------------------
>> > > http://webdiary.smh.com.au/archives/_comment/001075.html
>> >


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