Can a file system filter driver call a remote file system driver? if it’s
device object only attached on the local file system driver’s device?
which driver is LanmanRedirector’s driver?
Sure. First call IoGetDeviceObjectPointer with the
name of the driver (for LanMan it’s
L"\Device\LanmanRedirector") to get a device object
and file object. (For DesiredAccess you can try
FILE_ANY_ACCESS. See the docs page for
IoGetDeviceObjectPointer for more information on the
effects of DesiredAccess.)
Then create your own IRP and pass it to that device
object using IoCallDriver. For details on rolling your
own IRP see the SpyQueryFileSystemForFileName function
in the FileSpy source in the XP IFS kit.
Don’t forget to ObDerefenceObject the file object when
you’re done.
— gaoren wrote:
> Can a file system filter driver call a remote file
> system driver? if it’s
> device object only attached on the local file system
> driver’s device?
> which driver is LanmanRedirector’s driver?
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@nryan.com
> To unsubscribe send a blank email to
> %%email.unsub%%
>
=====
- Nicholas Ryan
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
Thanks a lot.
Another question:
How can a driver call a system service which is registered through service
control manager?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Nicholas Ryan
Sent: Friday, April 19, 2002 4:11 PM
To: File Systems Developers
Subject: [ntfsd] Re: Can drivers call other drivers? not in the same
chain?
Sure. First call IoGetDeviceObjectPointer with the
name of the driver (for LanMan it’s
L"\Device\LanmanRedirector") to get a device object
and file object. (For DesiredAccess you can try
FILE_ANY_ACCESS. See the docs page for
IoGetDeviceObjectPointer for more information on the
effects of DesiredAccess.)
Then create your own IRP and pass it to that device
object using IoCallDriver. For details on rolling your
own IRP see the SpyQueryFileSystemForFileName function
in the FileSpy source in the XP IFS kit.
Don’t forget to ObDerefenceObject the file object when
you’re done.
— gaoren wrote:
> Can a file system filter driver call a remote file
> system driver? if it’s
> device object only attached on the local file system
> driver’s device?
> which driver is LanmanRedirector’s driver?
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@nryan.com
> To unsubscribe send a blank email to
> %%email.unsub%%
>
=====
- Nicholas Ryan
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
—
You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
To unsubscribe send a blank email to %%email.unsub%%
_______
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
Have the service send an IOCTL with an empty buffer to
your driver via DeviceIoControl. Then block this
thread in your driver by waiting on an event.
When another portion of your driver wants the service
to do something on its behalf, it fills in the IOCTL
buffer with information about the request and then
signals the event. The IOCTL thread then wakes up and
returns back into the service. The service then
inspects the contents of the IOCTL buffer and does
whatever it’s told to do.
If you want to have your driver wait for the service’s
response to this request, the logic becomes a little
more complicated, but I’ve covered all the fundamental
concepts here. It’s just a matter of adding more
events, lists, buffers, and threads.
— gaoren wrote:
> Thanks a lot.
> Another question:
> How can a driver call a system service which is
> registered through service
> control manager?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of
> Nicholas Ryan
> Sent: Friday, April 19, 2002 4:11 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: Can drivers call other drivers?
> not in the same
> chain?
>
>
> Sure. First call IoGetDeviceObjectPointer with the
> name of the driver (for LanMan it’s
> L"\Device\LanmanRedirector") to get a device
> object
> and file object. (For DesiredAccess you can try
> FILE_ANY_ACCESS. See the docs page for
> IoGetDeviceObjectPointer for more information on the
> effects of DesiredAccess.)
>
> Then create your own IRP and pass it to that device
> object using IoCallDriver. For details on rolling
> your
> own IRP see the SpyQueryFileSystemForFileName
> function
> in the FileSpy source in the XP IFS kit.
>
> Don’t forget to ObDerefenceObject the file object
> when
> you’re done.
>
> — gaoren wrote:
> > Can a file system filter driver call a remote file
> > system driver? if it’s
> > device object only attached on the local file
> system
> > driver’s device?
> > which driver is LanmanRedirector’s driver?
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@nryan.com
> > To unsubscribe send a blank email to
> > %%email.unsub%%
> >
>
>
> =====
> - Nicholas Ryan
>
>
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.ca
> To unsubscribe send a blank email to %%email.unsub%%
>
>
>
>
_______
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at
> http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@nryan.com
> To unsubscribe send a blank email to
%%email.unsub%%
=====
- Nicholas Ryan
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
Thank you very much.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Nicholas Ryan
Sent: Friday, April 19, 2002 4:46 PM
To: File Systems Developers
Subject: [ntfsd] Re: Can drivers call other drivers? not in the same
chain?
Have the service send an IOCTL with an empty buffer to
your driver via DeviceIoControl. Then block this
thread in your driver by waiting on an event.
When another portion of your driver wants the service
to do something on its behalf, it fills in the IOCTL
buffer with information about the request and then
signals the event. The IOCTL thread then wakes up and
returns back into the service. The service then
inspects the contents of the IOCTL buffer and does
whatever it’s told to do.
If you want to have your driver wait for the service’s
response to this request, the logic becomes a little
more complicated, but I’ve covered all the fundamental
concepts here. It’s just a matter of adding more
events, lists, buffers, and threads.
— gaoren wrote:
> Thanks a lot.
> Another question:
> How can a driver call a system service which is
> registered through service
> control manager?
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com]On Behalf Of
> Nicholas Ryan
> Sent: Friday, April 19, 2002 4:11 PM
> To: File Systems Developers
> Subject: [ntfsd] Re: Can drivers call other drivers?
> not in the same
> chain?
>
>
> Sure. First call IoGetDeviceObjectPointer with the
> name of the driver (for LanMan it’s
> L"\Device\LanmanRedirector") to get a device
> object
> and file object. (For DesiredAccess you can try
> FILE_ANY_ACCESS. See the docs page for
> IoGetDeviceObjectPointer for more information on the
> effects of DesiredAccess.)
>
> Then create your own IRP and pass it to that device
> object using IoCallDriver. For details on rolling
> your
> own IRP see the SpyQueryFileSystemForFileName
> function
> in the FileSpy source in the XP IFS kit.
>
> Don’t forget to ObDerefenceObject the file object
> when
> you’re done.
>
> — gaoren wrote:
> > Can a file system filter driver call a remote file
> > system driver? if it’s
> > device object only attached on the local file
> system
> > driver’s device?
> > which driver is LanmanRedirector’s driver?
> >
> >
> >
> > —
> > You are currently subscribed to ntfsd as:
> > xxxxx@nryan.com
> > To unsubscribe send a blank email to
> > %%email.unsub%%
> >
>
>
> =====
> - Nicholas Ryan
>
>
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.ca
> To unsubscribe send a blank email to %%email.unsub%%
>
>
>
>
_______
>
> Do You Yahoo!?
>
> Get your free @yahoo.com address at
> http://mail.yahoo.com
>
>
>
>
> —
> You are currently subscribed to ntfsd as:
> xxxxx@nryan.com
> To unsubscribe send a blank email to
%%email.unsub%%
=====
- Nicholas Ryan
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
—
You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
To unsubscribe send a blank email to %%email.unsub%%
_______
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com