IoCancelOpen??

All:
In the FAQ of the IFS kit (question #1.6) it describes the proper way
to cancel a create request in a filter driver. It mentions using an
IoCancelOpen API. Two questions: (1) I can’t find any documentation on
this API and the compiler doesn’t recognize it. What am I missing? (2) In
the online version of the FAQ it says that this API is useful in both XP
and 2000 but the FAQ that comes with the IFS kit says only XP. Which is
it?

Thanks,

Chuck

Chuck,

This should be IoCancelFileOpen.

Regards,

Tony

Tony Mason
Consulting Partner
OSR Open Systems Resources, Inc.
http://www.osr.com

-----Original Message-----
From: chuck m [mailto:chuck.monarch@hp.com]
Sent: Tuesday, March 04, 2003 10:34 AM
To: File Systems Developers
Subject: [ntfsd] IoCancelOpen??

All:
In the FAQ of the IFS kit (question #1.6) it describes the proper way
to cancel a create request in a filter driver. It mentions using an
IoCancelOpen API. Two questions: (1) I can’t find any documentation on
this API and the compiler doesn’t recognize it. What am I missing? (2) In
the online version of the FAQ it says that this API is useful in both XP
and 2000 but the FAQ that comes with the IFS kit says only XP. Which is
it?

Thanks,

Chuck


You are currently subscribed to ntfsd as: xxxxx@osr.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

IoCancelFileOpen was present in w2k.

----- Original Message -----
From: “chuck m” <chuck.monarch>
To: “File Systems Developers”
Sent: Tuesday, March 04, 2003 6:34 PM
Subject: [ntfsd] IoCancelOpen??

> All:
> In the FAQ of the IFS kit (question #1.6) it describes the proper
way
> to cancel a create request in a filter driver. It mentions using an
> IoCancelOpen API. Two questions: (1) I can’t find any documentation
on
> this API and the compiler doesn’t recognize it. What am I missing?
(2) In
> the online version of the FAQ it says that this API is useful in
both XP
> and 2000 but the FAQ that comes with the IFS kit says only XP. Which
is
> it?
>
> Thanks,
>
> Chuck
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
></chuck.monarch>

hi,

i have implemented rolling my own create irp in my filter driver to access
files and have successfully used IoCancelFileOpen to close the files. i have
used this code in worker threads as well as in the original dispatch
routines like write, as part of the request’s processing. however, when i
tried to use this code in system threads spawned to run independent of the
request, IoCancelFileOpen will crash the system as the file object
apparently does not have a reference of 1. if i roll my own cleanup and
close irps, there is no issue. i need to access the file outside the
original request as the original request is a paging write request and i
intend to flush the file prior accessing. i cannot use the original file
object as the file has been closed.

is there any other thing that IoCancelFileOpen do on top of a cleanup and a
close?

Ampsi
----- Original Message -----
From: “Maxim S. Shatskih”
To: “File Systems Developers”
Sent: Wednesday, March 05, 2003 7:21 AM
Subject: [ntfsd] Re: IoCancelOpen??

IoCancelFileOpen was present in w2k.

----- Original Message -----
From: “chuck m” <chuck.monarch>
To: “File Systems Developers”
Sent: Tuesday, March 04, 2003 6:34 PM
Subject: [ntfsd] IoCancelOpen??

> All:
> In the FAQ of the IFS kit (question #1.6) it describes the proper
way
> to cancel a create request in a filter driver. It mentions using an
> IoCancelOpen API. Two questions: (1) I can’t find any documentation
on
> this API and the compiler doesn’t recognize it. What am I missing?
(2) In
> the online version of the FAQ it says that this API is useful in
both XP
> and 2000 but the FAQ that comes with the IFS kit says only XP. Which
is
> it?
>
> Thanks,
>
> Chuck
>
> —
> You are currently subscribed to ntfsd as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>


You are currently subscribed to ntfsd as: xxxxx@pmail.ntu.edu.sg
To unsubscribe send a blank email to xxxxx@lists.osr.com</chuck.monarch>