Hi everyone,
I want to send a message (Null terminated string) from my usermode application to my minifilter using DeviceIOControl. How do I do it?
Thank you
Chathura
Hi everyone,
I want to send a message (Null terminated string) from my usermode application to my minifilter using DeviceIOControl. How do I do it?
Thank you
Chathura
Create an IOCTL for the functionality in a common header file used in both your application and driver. Use DeviceIoControl to send the IOCTL to your driver after you have opened a handle. You can acquire the handle for the driver by either creating a symbolic name in the driver, or using SetupApi functions.
Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
On Sep 1, 2011, at 4:01 PM, xxxxx@gmail.com wrote:
Hi everyone,
I want to send a message (Null terminated string) from my usermode application to my minifilter using DeviceIOControl. How do I do it?
Thank you
Chathura
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminarsTo unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
There is a sample in the WDK that shows how to do this.
Bill Wandel
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Gary Little
Sent: Thursday, September 01, 2011 5:46 PM
To: Windows File Systems Devs Interest List
Cc: Gary Little
Subject: Re: [ntfsd] IOCTL for minifilter
Create an IOCTL for the functionality in a common header file used in both
your application and driver. Use DeviceIoControl to send the IOCTL to your
driver after you have opened a handle. You can acquire the handle for the
driver by either creating a symbolic name in the driver, or using SetupApi
functions.
Gary Little
H (952) 223-1349
C (952) 454-4629
xxxxx@comcast.net
On Sep 1, 2011, at 4:01 PM, xxxxx@gmail.com wrote:
Hi everyone,
I want to send a message (Null terminated string) from my usermode
application to my minifilter using DeviceIOControl. How do I do it?
Thank you
Chathura
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
Also FltMgr offers its own communication mechanism, the communication port
(FLT_PORT). See FltCreateCommunicationPort (currently at
http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There are
two samples in the WDK that show how this is used,
\src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.
Thanks,
Alex.
Thanks everyone for the replies.
I am new to device driver programming so I am not sure what to choose.
what is the best way to do this?
By using a communication port or IOCTL requests?
Thank you
Chathura
On Fri, Sep 2, 2011 at 3:44 AM, Alex Carp wrote:
> The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
>
> **
>
> Also FltMgr offers its own communication mechanism, the communication port
> (FLT_PORT). See FltCreateCommunicationPort (currently at
> http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There are
> two samples in the WDK that show how this is used,
> \src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.**
>
> ****
>
> Thanks,
>
> Alex.
>
> ****
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
I came across this tutorial I am just wondering if the method it sends the
IOCTLs would work with my problem in minifilter?
http://www.codeproject.com/KB/system/driverdev2.aspx
if not, what do I have to do differently to this to achieve what I want it
to do?
Thanks
Chathura
On Fri, Sep 2, 2011 at 2:47 PM, Chathura Mazz wrote:
> Thanks everyone for the replies.
>
> I am new to device driver programming so I am not sure what to choose.
> what is the best way to do this?
> By using a communication port or IOCTL requests?
>
> Thank you
> Chathura
>
> On Fri, Sep 2, 2011 at 3:44 AM, Alex Carp wrote:
>
>> The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
>>
>> **
>>
>> Also FltMgr offers its own communication mechanism, the communication port
>> (FLT_PORT). See FltCreateCommunicationPort (currently at
>> http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There
>> are two samples in the WDK that show how this is used,
>> \src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.**
>>
>> ****
>>
>> Thanks,
>>
>> Alex.
>>
>> ****
>>
>> —
>> NTFSD is sponsored by OSR
>>
>> For our schedule of debugging and file system seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>
What is wrong with the sample that Alex referenced.
Bill Wandel
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Chathura Mazz
Sent: Friday, September 02, 2011 1:46 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] IOCTL for minifilter
I came across this tutorial I am just wondering if the method it sends the
IOCTLs would work with my problem in minifilter?
http://www.codeproject.com/KB/system/driverdev2.aspx
if not, what do I have to do differently to this to achieve what I want it
to do?
Thanks
Chathura
On Fri, Sep 2, 2011 at 2:47 PM, Chathura Mazz wrote:
Thanks everyone for the replies.
I am new to device driver programming so I am not sure what to choose.
what is the best way to do this?
By using a communication port or IOCTL requests?
Thank you
Chathura
On Fri, Sep 2, 2011 at 3:44 AM, Alex Carp
wrote:
The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
Also FltMgr offers its own communication mechanism, the communication port
(FLT_PORT). See FltCreateCommunicationPort (currently at
http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There are
two samples in the WDK that show how this is used,
\src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.
Thanks,
Alex.
—
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Sorry, before Alex said about the examples I had already started following
the tutorial and started implementing it in to my driver.
I have had a look at the samples and they are a bit different to the code in
the tutorial so I did not try to change my code unless it is not gonna work
with my driver.
So I just wanted to make sure if it would work or not before I implement
the whole code in to it.
Chathura
On Fri, Sep 2, 2011 at 7:23 PM, Bill Wandel wrote:
> What is wrong with the sample that Alex referenced.
>
>
>
> Bill Wandel
>
> ****
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] *On Behalf Of *Chathura Mazz
> Sent: Friday, September 02, 2011 1:46 PM
>
> To: Windows File Systems Devs Interest List
> Subject: Re: [ntfsd] IOCTL for minifilter
>
>
>
> I came across this tutorial I am just wondering if the method it sends the
> IOCTLs would work with my problem in minifilter?
>
> ****
>
> http://www.codeproject.com/KB/system/driverdev2.aspx
>
>
>
> if not, what do I have to do differently to this to achieve what I want it
> to do?
>
> ****
>
> Thanks
>
> Chathura
>
> On Fri, Sep 2, 2011 at 2:47 PM, Chathura Mazz
> wrote:
>
> Thanks everyone for the replies.
>
> ****
>
> I am new to device driver programming so I am not sure what to choose.
> what is the best way to do this?
>
> By using a communication port or IOCTL requests?
>
> ****
>
> Thank you
>
> Chathura
>
> ****
>
> On Fri, Sep 2, 2011 at 3:44 AM, Alex Carp
> wrote:
>
> The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
>
>
>
> Also FltMgr offers its own communication mechanism, the communication port
> (FLT_PORT). See FltCreateCommunicationPort (currently at
> http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There are
> two samples in the WDK that show how this is used,
> \src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.
>
>
>
> Thanks,
>
> Alex.
>
>
> —
>
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
>
>
> — NTFSD is sponsored by OSR For our schedule of debugging and file system
> seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
I thought that you were looking for a minifilter example. The codeproject
article you referenced is not a minifilter sample. If you want a generic
ioctl sample look at general\ioctl in the wdk samples.
I don’t think that the cdo sample is a good one to start with. I hadn’t
looked at the sample before. I have looked at some of the other minifilter
samples.
Bill
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Chathura Mazz
Sent: Friday, September 02, 2011 2:50 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] IOCTL for minifilter
Sorry, before Alex said about the examples I had already started following
the tutorial and started implementing it in to my driver.
I have had a look at the samples and they are a bit different to the code in
the tutorial so I did not try to change my code unless it is not gonna work
with my driver.
So I just wanted to make sure if it would work or not before I implement
the whole code in to it.
Chathura
On Fri, Sep 2, 2011 at 7:23 PM, Bill Wandel wrote:
What is wrong with the sample that Alex referenced.
Bill Wandel
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Chathura Mazz
Sent: Friday, September 02, 2011 1:46 PM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] IOCTL for minifilter
I came across this tutorial I am just wondering if the method it sends the
IOCTLs would work with my problem in minifilter?
http://www.codeproject.com/KB/system/driverdev2.aspx
if not, what do I have to do differently to this to achieve what I want it
to do?
Thanks
Chathura
On Fri, Sep 2, 2011 at 2:47 PM, Chathura Mazz wrote:
Thanks everyone for the replies.
I am new to device driver programming so I am not sure what to choose.
what is the best way to do this?
By using a communication port or IOCTL requests?
Thank you
Chathura
On Fri, Sep 2, 2011 at 3:44 AM, Alex Carp
wrote:
The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
Also FltMgr offers its own communication mechanism, the communication port
(FLT_PORT). See FltCreateCommunicationPort (currently at
http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There are
two samples in the WDK that show how this is used,
\src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.
Thanks,
Alex.
—
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
—
NTFSD is sponsored by OSR
For our schedule of debugging and file system seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Thanks Bill,
but I am going to ask this again. what routine is best for me to use?
IOCTLs or communication ports?
Chathura
On Fri, Sep 2, 2011 at 7:58 PM, Bill Wandel wrote:
> I thought that you were looking for a minifilter example. The codeproject
> article you referenced is not a minifilter sample. If you want a generic
> ioctl sample look at general\ioctl in the wdk samples.
>
> I don?t think that the cdo sample is a good one to start with. I hadn?t
> looked at the sample before. I have looked at some of the other minifilter
> samples.
>
> ****
>
> Bill
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Chathura Mazz
> Sent: Friday, September 02, 2011 2:50 PM
>
> To: Windows File Systems Devs Interest List
> Subject: Re: [ntfsd] IOCTL for minifilter
>
> ****
>
> Sorry, before Alex said about the examples I had already started following
> the tutorial and started implementing it in to my driver.
>
> I have had a look at the samples and they are a bit different to the code
> in the tutorial so I did not try to change my code unless it is not gonna
> work with my driver.
>
> ****
>
> So I just wanted to make sure if it would work or not before I implement
> the whole code in to it.
>
>
>
> Chathura
>
> ****
>
> On Fri, Sep 2, 2011 at 7:23 PM, Bill Wandel
> wrote:
>
> What is wrong with the sample that Alex referenced.
>
>
>
> Bill Wandel
>
>
>
> From: xxxxx@lists.osr.com [mailto:
> xxxxx@lists.osr.com] On Behalf Of Chathura Mazz
> Sent: Friday, September 02, 2011 1:46 PM
>
>
> To: Windows File Systems Devs Interest List
>
> Subject: Re: [ntfsd] IOCTL for minifilter****
>
>
>
> I came across this tutorial I am just wondering if the method it sends the
> IOCTLs would work with my problem in minifilter?
>
>
>
> http://www.codeproject.com/KB/system/driverdev2.aspx
>
>
>
> if not, what do I have to do differently to this to achieve what I want it
> to do?
>
>
>
> Thanks
>
> Chathura
>
> On Fri, Sep 2, 2011 at 2:47 PM, Chathura Mazz
> wrote:
>
> Thanks everyone for the replies.
>
>
>
> I am new to device driver programming so I am not sure what to choose.
> what is the best way to do this?
>
> By using a communication port or IOCTL requests?
>
>
>
> Thank you
>
> Chathura
>
>
>
> On Fri, Sep 2, 2011 at 3:44 AM, Alex Carp
> wrote:
>
> The sample that Bill is referring to is \src\filesys\miniFilter\cdo.
>
>
>
> Also FltMgr offers its own communication mechanism, the communication port
> (FLT_PORT). See FltCreateCommunicationPort (currently at
> http://msdn.microsoft.com/en-us/library/ff541931(v=vs.85).aspx). There are
> two samples in the WDK that show how this is used,
> \src\filesys\miniFilter\minispy and \src\filesys\miniFilter\scanner.
>
>
>
> Thanks,
>
> Alex.
>
>
> —
>
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
>
>
> — NTFSD is sponsored by OSR For our schedule of debugging and file system
> seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
> — NTFSD is sponsored by OSR For our schedule of debugging and file system
> seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List
> Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule of debugging and file system seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
I’d say that communication ports are easier to use while offering similar
performance. I would recommend them unless you’re already familiar with
IOCTLs or you have legacy code you’re trying to port.
But that’s just my opinion.
Thanks,
Alex.