FlushFIleBuffers equivalent

I wonder if there’s a Zw equivalent of FlushFileBuffers for kernel mode? I
am aware of IRP_MJ_FLUSH_BUFFERS, but it’s a bit inconvenient to use on
HANDLEs.

Thanks.

>I wonder if there’s a Zw equivalent of FlushFileBuffers for kernel mode? I

am aware of IRP_MJ_FLUSH_BUFFERS, but it’s a bit inconvenient to use on
HANDLEs.

You may allocate your own IRP with IRP_MJ_FLUSH_BUFFERS.

L.

> am aware of IRP_MJ_FLUSH_BUFFERS, but it’s a bit inconvenient to use on

HANDLEs.

Correct, use this IRP on file objects without any handles.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com