attach-detach to \DosDevices\A: in Filemon sample

I would like to attach-detach on-fly to \DosDevices\A: in Filemon sample
when detect that a new a: is mounted (a new disk was inserted into the
drive a:).I do UnhookDrive(‘A’) then HookDriveSet(-1,…) but my system
always hangs.I saw that some of you already try this .How do you do and
what sould I do? (I have filemon 4).I try to synchronize this process with
semaphores but I did not solve the problem
Thanks

Forget about HookDrive. Attach to a device named Fat, this device
receives requests when a diskette is inserted, and on completion of this
request you get a pointer to the device you want to attach. You can find
an example of this in the book of Rajev Nagar. If you don’t have the book,
the example is somewhere in the net, but I don’t remember where.

On Sun, 4 Jun 2000 xxxxx@excite.com wrote:

I would like to attach-detach on-fly to \DosDevices\A: in Filemon sample
when detect that a new a: is mounted (a new disk was inserted into the
drive a:).I do UnhookDrive(‘A’) then HookDriveSet(-1,…) but my system
always hangs.I saw that some of you already try this .How do you do and
what sould I do? (I have filemon 4).I try to synchronize this process with
semaphores but I did not solve the problem
Thanks


You are currently subscribed to ntfsd as: xxxxx@ghost.matcom.uh.cu
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

Thanks
I already have that book,but I have two major problems:
1:I could not start the drive at boot time so I cannot get attached to
NTFS
2:I could not create a link beetwen a DeviceObject and a drive letter (in
FileObject I receive absolute path).I try to use ZwOpenSymbolicLinkObject,
ZwQuerySymbolicLinkObject and IoGetDeviceObjectPointer but I see a
mulfunction in that style.I guess this functions have bugs in NT4
Question:How can I solve those two problems.Do you test&use that sample?
Thanks again

Do not start at boot time, if you are testing your driver you should
start manually and when you’re sure all is ok, set the start option to
number 2 not 0 (boot time).
What is happening with these functions? Are you getting link errors?
Because that’s what happened to me. The prototypes of these functions are
not in any header file in ntddk. You have to write the prototype yourself.

On Mon, 5 Jun 2000 xxxxx@excite.com wrote:

Thanks
I already have that book,but I have two major problems:
1:I could not start the drive at boot time so I cannot get attached to
NTFS
2:I could not create a link beetwen a DeviceObject and a drive letter (in
FileObject I receive absolute path).I try to use ZwOpenSymbolicLinkObject,
ZwQuerySymbolicLinkObject and IoGetDeviceObjectPointer but I see a
mulfunction in that style.I guess this functions have bugs in NT4
Question:How can I solve those two problems.Do you test&use that sample?
Thanks again


You are currently subscribed to ntfsd as: xxxxx@ghost.matcom.uh.cu
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

----- Original Message -----
From: “Ratmil Torres Vargas”
To: “File Systems Developers”
Sent: Wednesday, June 07, 2000 3:52 PM
Subject: [ntfsd] Re: attach-detach to \DosDevices\A: in Filemon sample

> Do not start at boot time, if you are testing your driver you should
> start manually and when you’re sure all is ok, set the start option to
> number 2 not 0 (boot time).

In the Rajeev’s book says that the driver should be started at boot time.I
solve first problem.I could start my driver at boot time and I receive now
IRP when accesing NTFS

> What is happening with these functions? Are you getting link errors?
> Because that’s what happened to me. The prototypes of these functions are
> not in any header file in ntddk. You have to write the prototype yourself.
>
I know .I write the prototypes .

> On Mon, 5 Jun 2000 xxxxx@excite.com wrote:
>
> > Thanks
> > I already have that book,but I have two major problems:
> > 1:I could not start the drive at boot time so I cannot get attached to
> > NTFS
> > 2:I could not create a link beetwen a DeviceObject and a drive letter
(in
> > FileObject I receive absolute path).I try to use
ZwOpenSymbolicLinkObject,
> > ZwQuerySymbolicLinkObject and IoGetDeviceObjectPointer but I see a
> > mulfunction in that style.I guess this functions have bugs in NT4
> > Question:How can I solve those two problems.Do you test&use that sample?
> > Thanks again
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@ghost.matcom.uh.cu
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> >
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@gecad.ro
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)

On Wed, 7 Jun 2000, chirita Adrian wrote:

----- Original Message -----
From: “Ratmil Torres Vargas”
> To: “File Systems Developers”
> Sent: Wednesday, June 07, 2000 3:52 PM
> Subject: [ntfsd] Re: attach-detach to \DosDevices\A: in Filemon sample
>
>
> > Do not start at boot time, if you are testing your driver you should
> > start manually and when you’re sure all is ok, set the start option to
> > number 2 not 0 (boot time).
>
> In the Rajeev’s book says that the driver should be started at boot time.I
> solve first problem.I could start my driver at boot time and I receive now
> IRP when accesing NTFS
It’s good to know it is working OK. Are you sure you set it to
boot_start not auto_start? Well if it works then you are right. I don’t
have the book.
>
> > What is happening with these functions? Are you getting link errors?
> > Because that’s what happened to me. The prototypes of these functions are
> > not in any header file in ntddk. You have to write the prototype yourself.
> >
> I know .I write the prototypes .
Sorry, then I don’t know. What is exactly what happens with these
functions? They work OK for me in NT4.
I did not test the sample, I just borrow a piece of the code.
>
> > On Mon, 5 Jun 2000 xxxxx@excite.com wrote:
> >
> > > Thanks
> > > I already have that book,but I have two major problems:
> > > 1:I could not start the drive at boot time so I cannot get attached to
> > > NTFS
> > > 2:I could not create a link beetwen a DeviceObject and a drive letter
> (in
> > > FileObject I receive absolute path).I try to use
> ZwOpenSymbolicLinkObject,
> > > ZwQuerySymbolicLinkObject and IoGetDeviceObjectPointer but I see a
> > > mulfunction in that style.I guess this functions have bugs in NT4
> > > Question:How can I solve those two problems.Do you test&use that sample?
> > > Thanks again
> > >
> > > —
> > > You are currently subscribed to ntfsd as: xxxxx@ghost.matcom.uh.cu
> > > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
> > >
> >
> >
> > —
> > You are currently subscribed to ntfsd as: xxxxx@gecad.ro
> > To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>
>
> —
> You are currently subscribed to ntfsd as: xxxxx@ghost.matcom.uh.cu
> To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>