How can I do in IRP_MJ_CREATE dispatch routine to ensure a noncached file handle?

I want to return a noncached file handle, the CreateFile routine is roughly as follows:
1)CreateFile(…) in application,
2)IO manager send IRP_MJ_CREATE,
3)call IRP_MJ_CREATE dispatch routine in file system filter
4)call IRP_MJ_CREATE dispatch routine in file system
5)According the return value in IRP_MJ_CREATE dispatch routine in filter driver, return a handle to the application which calls the CreateFile(…).

How can I do in create routine of my filter to force return a noncache file handle without FILE_FLAG_NO_BUFFERING set in CreateFile(…)? Are there any parameters we can modify in
the create routine?

Thanks.

Stephen Li

wrote in message news:xxxxx@ntfsd…
>How can I do in create routine of my filter to force return a noncache file
>handle without FILE_FLAG_NO_BUFFERING set
>in CreateFile(…)? Are there any parameters we can modify in the create
>routine?

See the archives:

http://www.osronline.com/showthread.cfm?link=176637

What are you trying to do exactly though? As that thread indicates it’s not
really a useful technique.

-scott


Scott Noone
Consulting Associate
OSR Open Systems Resources, Inc.
http://www.osronline.com

wrote in message news:xxxxx@ntfsd…
> I want to return a noncached file handle, the CreateFile routine is
> roughly as follows:
> 1)CreateFile(…) in application,
> 2)IO manager send IRP_MJ_CREATE,
> 3)call IRP_MJ_CREATE dispatch routine in file system filter
> 4)call IRP_MJ_CREATE dispatch routine in file system
> 5)According the return value in IRP_MJ_CREATE dispatch routine in filter
> driver, return a handle to the application which calls the
> CreateFile(…).
>
> How can I do in create routine of my filter to force return a noncache
> file handle without FILE_FLAG_NO_BUFFERING set in CreateFile(…)? Are
> there any parameters we can modify in
> the create routine?
>
> Thanks.
>
> Stephen Li
>