Contexts on Windows 2000

According to the docs, FltIsDirectory works only if the file systems
support contexts, and this leads to FsRtlSupportsPerStreamContexts which
is Windows XP and later function - does this mean contexts are not
supported at all on Windows 2000? In which case we would have to resort
to our internal hash tables for file names and any other FO related
data.


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.

Dejan

I believe that FilterManager uses FilterContexts hence if your installation
of Windows 2000 has FilterManager (has the rollup installed) then it
supports FilterContexts, otherwise, I think you can assume these will nto be
available.

Cheers
Lyndon

“Dejan Maksimovic” wrote in message news:xxxxx@ntfsd…
>
> According to the docs, FltIsDirectory works only if the file systems
> support contexts, and this leads to FsRtlSupportsPerStreamContexts which
> is Windows XP and later function - does this mean contexts are not
> supported at all on Windows 2000? In which case we would have to resort
> to our internal hash tables for file names and any other FO related
> data.
>
> –
> Kind regards, Dejan M.
> http://www.alfasp.com E-mail: xxxxx@alfasp.com
> Alfa Transparent File Encryptor - Transparent file encryption services.
> Alfa File Protector - File protection and hiding library for Win32
> developers.
> Alfa File Monitor - File monitoring library for Win32 developers.
>
>
>

Stream contexts are supported on Windows 2000, both NTFS and FAT. However,
there are exceptions (like paging files), so the routine can be used to
double-check that.

Alternatively, if FltSetStreamHandleContext() fails with
STATUS_NOT_SUPPORTED, that’s a pretty good clue. :wink:

Ken

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Thursday, August 18, 2005 1:18 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] Contexts on Windows 2000

According to the docs, FltIsDirectory works only if the file systems
support contexts, and this leads to FsRtlSupportsPerStreamContexts which
is Windows XP and later function - does this mean contexts are not
supported at all on Windows 2000? In which case we would have to resort
to our internal hash tables for file names and any other FO related
data.


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.


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

This was actually added in a W2K service pack (SP4?); it is required for
filter manager (for instance).

In our own work, we do exactly what you suggest - wrap the OS with our
own routines and fall back to the table lookup for versions (or file
systems, or even files) that don’t support filter contexts.

Regards,

Tony

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

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dejan Maksimovic
Sent: Thursday, August 18, 2005 1:18 PM
To: ntfsd redirect
Subject: [ntfsd] Contexts on Windows 2000

According to the docs, FltIsDirectory works only if the file systems
support contexts, and this leads to FsRtlSupportsPerStreamContexts which
is Windows XP and later function - does this mean contexts are not
supported at all on Windows 2000? In which case we would have to resort
to our internal hash tables for file names and any other FO related
data.


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32
developers.
Alfa File Monitor - File monitoring library for Win32 developers.


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

I think that the first time W2K has seen per stream
context support is with the Filter Manager update for
W2K. Filter Manager requires per stream context
support.

— Dejan Maksimovic wrote:

>
> According to the docs, FltIsDirectory works only
> if the file systems
> support contexts, and this leads to
> FsRtlSupportsPerStreamContexts which
> is Windows XP and later function - does this mean
> contexts are not
> supported at all on Windows 2000? In which case we
> would have to resort
> to our internal hash tables for file names and any
> other FO related
> data.
>
> –
> Kind regards, Dejan M.
> http://www.alfasp.com E-mail: xxxxx@alfasp.com
> Alfa Transparent File Encryptor - Transparent file
> encryption services.
> Alfa File Protector - File protection and hiding
> library for Win32
> developers.
> Alfa File Monitor - File monitoring library for
> Win32 developers.
>
>
>
> —
> Questions? First check the IFS FAQ at
> https://www.osronline.com/article.cfm?id=17
>
> You are currently subscribed to ntfsd as:
> xxxxx@yahoo.com
> To unsubscribe send a blank email to
> xxxxx@lists.osr.com
>

That’s what I expected (before reading the docs), which is just fine, considering
it’s a mini-filter project I am working on.

Lyndon J Clarke wrote:

Dejan

I believe that FilterManager uses FilterContexts hence if your installation
of Windows 2000 has FilterManager (has the rollup installed) then it
supports FilterContexts, otherwise, I think you can assume these will nto be
available.


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.

Hmm - one other thing - are contexts supported on Lanman? That would be a pretty
good indication why my filter “doesn’t see” network I/O :slight_smile:

Alternatively, if FltSetStreamHandleContext() fails with
STATUS_NOT_SUPPORTED, that’s a pretty good clue. :wink:


Kind regards, Dejan M.
http://www.alfasp.com E-mail: xxxxx@alfasp.com
Alfa Transparent File Encryptor - Transparent file encryption services.
Alfa File Protector - File protection and hiding library for Win32 developers.
Alfa File Monitor - File monitoring library for Win32 developers.