Hi all,
I am trying to get all the file events from a network drive, I get the events but when I try to read the file by calling FltReadFile I get invalid handel. File events from other disk works fine.
I am running on a Windows 2003 R2 x86 machine, when I run the driver in windows 7 it works fine, so it seems to be a windows 2003 problem.
The events are received in post create callback and I am using the cancel-safe queues, and it is in the cancel safe work item routine I am calling the FltReadFile method.
FltReadFile( InstCtx->Instance, Data->Iopb->TargetFileObject, &byteOffset, Length, buffer, FLTFL_IO_OPERATION_NON_CACHED | FLTFL_IO_OPERATION_DO_NOT_UPDATE_BYTE_OFFSET, &bytesRead, NULL, NULL );
My question is if it is possible to read a file from a network disk like I do in cancel safe work item routine on a windows server 2003 machine?
Or can/should I do it in some other way?
Thanks
/Mattias Lasu