FltCreateFile and FltCreateFileEx

I guess FltGetRoutineAddress is what you need.

L.
----- Original Message -----
From: ganesh pashupathi
To: Windows File Systems Devs Interest List
Sent: Sunday, November 19, 2006 7:59 AM
Subject: Re: [ntfsd] FltCreateFile and FltCreateFileEx

Hi,

Or use IoIsWdmVersionAvailable to determine if this is XP SP2 or 2k3.

~ganesh

On Sun, 19 Nov 2006 ganesh pashupathi wrote :
>Hi,
>
> My search through the archives did not give the final answer.
>
> I need to read the file in the pre-create path. I got the FltCreateFile function working correctly. However this function is obsolete on Windows 2003 SP1 and later. Also FltCreateFileEx is available on Windows 2003 SP1 and later. Is the ex version of the function available on XP SP2 (I have not yet got the ex function working)? Or do I have to maintain two versions for the function that will read the file in precreate?
>
>~ganesh
>
>—
>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

Ganesh:

FltCreateEx was added to XP in some later hotfix (not sure which one), but
it’s not in XP SP2.

You can check dynamically whether FltCreateEx is available, but I’ve found
it easier use FltCreate on all platforms.

The only difference is FltCreate doesn’t return the FILE_OBJECT which is
easily obtainable with ObReferenceObjectByHandle. The instructions for this
are in the FltCreate comments.

Whichever routine you use, you must release the FILE_OBJECT with
ObDereferenceObject.

Ken


From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ganesh pashupathi
Sent: Sunday, November 19, 2006 1:59 AM
To: Windows File Systems Devs Interest List
Subject: Re: [ntfsd] FltCreateFile and FltCreateFileEx

Hi,

Or use IoIsWdmVersionAvailable to determine if this is XP SP2 or 2k3.

~ganesh

On Sun, 19 Nov 2006 ganesh pashupathi wrote :

Hi,

My search through the archives did not give the final answer.

I need to read the file in the pre-create path. I got the FltCreateFile
function working correctly. However this function is obsolete on Windows
2003 SP1 and later. Also FltCreateFileEx is available on Windows 2003 SP1
and later. Is the ex version of the function available on XP SP2 (I have not
yet got the ex function working)? Or do I have to maintain two versions for
the function that will read the file in precreate?

~ganesh


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