User FSCTL

Is there any provision to add a FSCTL that a filter can use to interact with
an application program and a file it has opened.

i.e. The application program opens a file and then sends a unique FSCTL that
a filter driver would intercept, operate on the file and then return.

Ken

It is possible, but it is better to create a named control device object. Your current approach is likely to cause the interop issues.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Ken Galipeau
To: Windows File Systems Devs Interest List
Sent: Friday, November 12, 2004 9:52 PM
Subject: [ntfsd] User FSCTL

Is there any provision to add a FSCTL that a filter can use to interact with an application program and a file it has opened.

i.e. The application program opens a file and then sends a unique FSCTL that a filter driver would intercept, operate on the file and then return.

Ken


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

I need the FileObject of the open file. I don’t see how a named control
object would allow this.

Thanks,

Ken


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, November 12, 2004 2:23 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] User FSCTL

It is possible, but it is better to create a named control device
object. Your current approach is likely to cause the interop issues.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----

From: Ken Galipeau mailto:xxxxx

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Friday, November 12, 2004 9:52 PM

Subject: [ntfsd] User FSCTL

Is there any provision to add a FSCTL that a filter can use to interact with
an application program and a file it has opened.

i.e. The application program opens a file and then sends a unique FSCTL that
a filter driver would intercept, operate on the file and then return.

Ken


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
https:

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</https:></mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx>

Pass file handle as IOCTL parameter.
Do ObReferenceObjectByHandle( *IoFileObjectType ) in the driver.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: Ken Galipeau
To: Windows File Systems Devs Interest List
Sent: Friday, November 12, 2004 10:32 PM
Subject: RE: [ntfsd] User FSCTL

I need the FileObject of the open file. I don’t see how a named control object would allow this.

Thanks,

Ken


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, November 12, 2004 2:23 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] User FSCTL

It is possible, but it is better to create a named control device object. Your current approach is likely to cause the interop issues.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----

From: Ken Galipeau

To: Windows File Systems Devs Interest List

Sent: Friday, November 12, 2004 9:52 PM

Subject: [ntfsd] User FSCTL

Is there any provision to add a FSCTL that a filter can use to interact with an application program and a file it has opened.

i.e. The application program opens a file and then sends a unique FSCTL that a filter driver would intercept, operate on the file and then return.

Ken


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com

I’ll try that.

Thanks,

Ken


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, November 12, 2004 2:54 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] User FSCTL

Pass file handle as IOCTL parameter.

Do ObReferenceObjectByHandle( *IoFileObjectType ) in the driver.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----

From: Ken Galipeau mailto:xxxxx

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Friday, November 12, 2004 10:32 PM

Subject: RE: [ntfsd] User FSCTL

I need the FileObject of the open file. I don’t see how a named control
object would allow this.

Thanks,

Ken

_____

From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, November 12, 2004 2:23 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] User FSCTL

It is possible, but it is better to create a named control device
object. Your current approach is likely to cause the interop issues.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----

From: Ken Galipeau mailto:xxxxx

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Friday, November 12, 2004 9:52 PM

Subject: [ntfsd] User FSCTL

Is there any provision to add a FSCTL that a filter can use to interact with
an application program and a file it has opened.

i.e. The application program opens a file and then sends a unique FSCTL that
a filter driver would intercept, operate on the file and then return.

Ken


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
https:

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</https:></mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx>

Now that I have the file object in my own device control. The other problem
is what device object (or instance in a Mini Filter) do I send the query to?

Ken


From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, November 12, 2004 2:54 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] User FSCTL

Pass file handle as IOCTL parameter.

Do ObReferenceObjectByHandle( *IoFileObjectType ) in the driver.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----

From: Ken Galipeau mailto:xxxxx

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Friday, November 12, 2004 10:32 PM

Subject: RE: [ntfsd] User FSCTL

I need the FileObject of the open file. I don’t see how a named control
object would allow this.

Thanks,

Ken

_____

From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, November 12, 2004 2:23 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] User FSCTL

It is possible, but it is better to create a named control device
object. Your current approach is likely to cause the interop issues.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com mailto:xxxxx
http://www.storagecraft.com http:

----- Original Message -----

From: Ken Galipeau mailto:xxxxx

To: Windows File mailto:xxxxx Systems Devs Interest List

Sent: Friday, November 12, 2004 9:52 PM

Subject: [ntfsd] User FSCTL

Is there any provision to add a FSCTL that a filter can use to interact with
an application program and a file it has opened.

i.e. The application program opens a file and then sends a unique FSCTL that
a filter driver would intercept, operate on the file and then return.

Ken


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
https:

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com</https:></mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx></mailto:xxxxx></mailto:xxxxx></http:></mailto:xxxxx>