why does it creates a CDO, must it not create a communication port.
Or is it a way to show that CDOs can also be used with minifilters
even though communication port is the recommended way.
…Mani
why does it creates a CDO, must it not create a communication port.
Or is it a way to show that CDOs can also be used with minifilters
even though communication port is the recommended way.
…Mani
Yes, it is just an example of how a CDO can be used in a minifilter. It’s
useful if you have existing code using a CDO, but want to change to a
minifilter.
The communication port is recommended because it is automatically shut down
if the driver gets unloaded, and also notifies the driver when the port
disconnects. I changed from a CDO to communications port for these reasons.
Ken
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Wednesday, March 30, 2005 2:17 AM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Question about the CDO sample
why does it creates a CDO, must it not create a communication port.
Or is it a way to show that CDOs can also be used with minifilters
even though communication port is the recommended way.
…Mani
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
One more question. why does it handles the IRP_MJ_FILE_SYSTEM_CONTROL.
When is a FSFDs CDO going to get a IRP_MJ_FILE_SYSTEM_CONTROL irp.
…Mani
“Ken Cross” wrote in message news:xxxxx@ntfsd…
> Yes, it is just an example of how a CDO can be used in a minifilter. It’s
> useful if you have existing code using a CDO, but want to change to a
> minifilter.
>
> The communication port is recommended because it is automatically shut
down
> if the driver gets unloaded, and also notifies the driver when the port
> disconnects. I changed from a CDO to communications port for these
reasons.
>
> Ken
>
>
> ________________________________
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Mani
> Sent: Wednesday, March 30, 2005 2:17 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Question about the CDO sample
>
>
> why does it creates a CDO, must it not create a communication port.
> Or is it a way to show that CDOs can also be used with minifilters
> even though communication port is the recommended way.
>
> …Mani
>
> —
> 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
>
>
If (as the documentation says) “a user-mode application has called the
Microsoft Win32 DeviceIoControl function to send a file system I/O control
(FSCTL) request.”
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Wednesday, March 30, 2005 7:55 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Question about the CDO sample
One more question. why does it handles the IRP_MJ_FILE_SYSTEM_CONTROL.
When is a FSFDs CDO going to get a IRP_MJ_FILE_SYSTEM_CONTROL irp.
…Mani
“Ken Cross” wrote in message news:xxxxx@ntfsd…
> Yes, it is just an example of how a CDO can be used in a minifilter. It’s
> useful if you have existing code using a CDO, but want to change to a
> minifilter.
>
> The communication port is recommended because it is automatically shut
down
> if the driver gets unloaded, and also notifies the driver when the port
> disconnects. I changed from a CDO to communications port for these
reasons.
>
> Ken
>
>
> ________________________________
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Mani
> Sent: Wednesday, March 30, 2005 2:17 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Question about the CDO sample
>
>
> why does it creates a CDO, must it not create a communication port.
> Or is it a way to show that CDOs can also be used with minifilters
> even though communication port is the recommended way.
>
> …Mani
>
> —
> 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: xxxxx@comcast.net
To unsubscribe send a blank email to xxxxx@lists.osr.com
FSCTLS is how user mode applications send private data to/from their
associated filter. Take a look at the filespy sample in the IFSKit.
That is how the logging information is returned.
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ken Cross
Sent: Wednesday, March 30, 2005 5:06 AM
To: Windows File Systems Devs Interest List
Subject: RE: [ntfsd] Question about the CDO sample
If (as the documentation says) “a user-mode application has called the
Microsoft Win32 DeviceIoControl function to send a file system I/O
control
(FSCTL) request.”
Ken
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Wednesday, March 30, 2005 7:55 AM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Question about the CDO sample
One more question. why does it handles the IRP_MJ_FILE_SYSTEM_CONTROL.
When is a FSFDs CDO going to get a IRP_MJ_FILE_SYSTEM_CONTROL irp.
…Mani
“Ken Cross” wrote in message news:xxxxx@ntfsd…
> Yes, it is just an example of how a CDO can be used in a minifilter.
It’s
> useful if you have existing code using a CDO, but want to change to a
> minifilter.
>
> The communication port is recommended because it is automatically shut
down
> if the driver gets unloaded, and also notifies the driver when the
port
> disconnects. I changed from a CDO to communications port for these
reasons.
>
> Ken
>
>
> ________________________________
>
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Mani
> Sent: Wednesday, March 30, 2005 2:17 AM
> To: Windows File Systems Devs Interest List
> Subject: [ntfsd] Question about the CDO sample
>
>
> why does it creates a CDO, must it not create a communication port.
> Or is it a way to show that CDOs can also be used with minifilters
> even though communication port is the recommended way.
>
> …Mani
>
> —
> 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: xxxxx@comcast.net
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: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Thank you. Can we define a custom FSCTL code just like we do for IOCTL code
using CTL_CODE. I read the documentation. It says that FSCTLs are sent using
DeviceIoControl API. My query is how do the IO Manager know whether the
control code which will be sent to the driver using DeviceIoControl is a
IOCTL code or a FSCTL code.
…Mani
“Ken Cross” wrote in message news:xxxxx@ntfsd…
> If (as the documentation says) “a user-mode application has called the
> Microsoft Win32 DeviceIoControl function to send a file system I/O control
> (FSCTL) request.”
>
> Ken
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Mani
> Sent: Wednesday, March 30, 2005 7:55 AM
> To: Windows File Systems Devs Interest List
> Subject: Re:[ntfsd] Question about the CDO sample
>
> One more question. why does it handles the IRP_MJ_FILE_SYSTEM_CONTROL.
> When is a FSFDs CDO going to get a IRP_MJ_FILE_SYSTEM_CONTROL irp.
>
> …Mani
>
>
> “Ken Cross” wrote in message news:xxxxx@ntfsd…
> > Yes, it is just an example of how a CDO can be used in a minifilter.
It’s
> > useful if you have existing code using a CDO, but want to change to a
> > minifilter.
> >
> > The communication port is recommended because it is automatically shut
> down
> > if the driver gets unloaded, and also notifies the driver when the port
> > disconnects. I changed from a CDO to communications port for these
> reasons.
> >
> > Ken
> >
> >
> > ________________________________
> >
> > From: xxxxx@lists.osr.com
> > [mailto:xxxxx@lists.osr.com] On Behalf Of Mani
> > Sent: Wednesday, March 30, 2005 2:17 AM
> > To: Windows File Systems Devs Interest List
> > Subject: [ntfsd] Question about the CDO sample
> >
> >
> > why does it creates a CDO, must it not create a communication port.
> > Or is it a way to show that CDOs can also be used with minifilters
> > even though communication port is the recommended way.
> >
> > …Mani
> >
> > —
> > 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: xxxxx@comcast.net
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> control code which will be sent to the driver using DeviceIoControl is a
IOCTL code or a FSCTL code.
I think that some of the IOCTL code bitfields is used for this.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
Thank you Maxim. But my first question remains unanswered. Can we define a
custom FSCTL code just like we do for IOCTL code using CTL_CODE.
…Mani
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntfsd…
> > control code which will be sent to the driver using DeviceIoControl is a
> > IOCTL code or a FSCTL code.
>
> I think that some of the IOCTL code bitfields is used for this.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
Yes
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Thursday, March 31, 2005 8:50 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Re:Question about the CDO sample
Thank you Maxim. But my first question remains unanswered. Can we define
a
custom FSCTL code just like we do for IOCTL code using CTL_CODE.
…Mani
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntfsd…
> > control code which will be sent to the driver using DeviceIoControl
is a
> > IOCTL code or a FSCTL code.
>
> I think that some of the IOCTL code bitfields is used for this.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
Yes, but it is a much better idea to create a named control device in your
driver and send your custom IOCTLs to it.
Do not send custom IOCTLs to the FS volume - this can cause interop issues.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Mani”
Newsgroups: ntfsd
To: “Windows File Systems Devs Interest List”
Sent: Friday, April 01, 2005 8:49 AM
Subject: Re:[ntfsd] Re:Question about the CDO sample
> Thank you Maxim. But my first question remains unanswered. Can we define a
> custom FSCTL code just like we do for IOCTL code using CTL_CODE.
>
> …Mani
>
>
> “Maxim S. Shatskih” wrote in message
> news:xxxxx@ntfsd…
> > > control code which will be sent to the driver using DeviceIoControl is a
> > > IOCTL code or a FSCTL code.
> >
> > I think that some of the IOCTL code bitfields is used for this.
> >
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > xxxxx@storagecraft.com
> > http://www.storagecraft.com
> >
> >
>
>
>
> —
> Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
I observed that preparing the IOCTL (using the CTL_CODE) with Device Type as
FILE_DEVICE_FILE_SYSTEM produces a FSCTL. Is it the only way to prepare
custom FSCTLs.
Second thing i saw was, be it a driver of any Device Type it will get the
FSCTL (if it supports IRP_MJ_FILE_SYSTEM_CONTROL) for the FSCTL prepared
using above method.
i have carried out the experiment. i want someone’s confirmation.
thank you.
…Mani
“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
Yes
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Thursday, March 31, 2005 8:50 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Re:Question about the CDO sample
Thank you Maxim. But my first question remains unanswered. Can we define
a
custom FSCTL code just like we do for IOCTL code using CTL_CODE.
…Mani
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntfsd…
> > control code which will be sent to the driver using DeviceIoControl
is a
> > IOCTL code or a FSCTL code.
>
> I think that some of the IOCTL code bitfields is used for this.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
That is the implementation of DeviceIoControl in Win32 for Windows 2000
and beyond.
A few of you might remember NT 4.0 when DeviceIoControl had an explicit
list of FSCTL operations it sent as file system controls, with all of
the others sent as device controls.
Regards,
Tony
Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com
And now off to teach file systems this week in Boston…
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Monday, April 04, 2005 7:26 AM
To: ntfsd redirect
Subject: Re:[ntfsd] Re:Question about the CDO sample
I observed that preparing the IOCTL (using the CTL_CODE) with Device
Type as
FILE_DEVICE_FILE_SYSTEM produces a FSCTL. Is it the only way to prepare
custom FSCTLs.
Second thing i saw was, be it a driver of any Device Type it will get
the
FSCTL (if it supports IRP_MJ_FILE_SYSTEM_CONTROL) for the FSCTL prepared
using above method.
i have carried out the experiment. i want someone’s confirmation.
thank you.
…Mani
“Neal Christiansen” wrote in message
news:xxxxx@ntfsd…
Yes
Neal Christiansen
Microsoft File System Filter Group Lead
This posting is provided “AS IS” with no warranties, and confers no
Rights
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Mani
Sent: Thursday, March 31, 2005 8:50 PM
To: Windows File Systems Devs Interest List
Subject: Re:[ntfsd] Re:Question about the CDO sample
Thank you Maxim. But my first question remains unanswered. Can we define
a
custom FSCTL code just like we do for IOCTL code using CTL_CODE.
…Mani
“Maxim S. Shatskih” wrote in message
news:xxxxx@ntfsd…
> > control code which will be sent to the driver using DeviceIoControl
is a
> > IOCTL code or a FSCTL code.
>
> I think that some of the IOCTL code bitfields is used for this.
>
> Maxim Shatskih, Windows DDK MVP
> StorageCraft Corporation
> xxxxx@storagecraft.com
> http://www.storagecraft.com
>
>
—
Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17
You are currently subscribed to ntfsd as: xxxxx@windows.microsoft.com
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: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com