T
Thomas Johansen
Hi
In my driver, I do log some data in af file on the harddrive. It would be
nice to read the file with notepad, will the driver still is running and
using the file.
I do have some problems doing this.
This is what I would like to do:
Read the file in eg. Notepad, while the driver stilling using the file
If the file allready exits, the driver opens the file, and append anything
new to it.
This is how I open the file in the driver
// Create the file
status = ZwCreateFile( &hLogFile,
SYNCHRONIZE,
&objectAttributes,
&IoStatus,
0,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_WRITE | FILE_SHARE_WRITE,
FILE_OPEN_IF,
FILE_SYNCHRONOUS_IO_NONALERT,
NULL,
0 );
I guess the problem is in the way I create the file, but what ?
Thomas
In my driver, I do log some data in af file on the harddrive. It would be
nice to read the file with notepad, will the driver still is running and
using the file.
I do have some problems doing this.
This is what I would like to do:
Read the file in eg. Notepad, while the driver stilling using the file
If the file allready exits, the driver opens the file, and append anything
new to it.
This is how I open the file in the driver
// Create the file
status = ZwCreateFile( &hLogFile,
SYNCHRONIZE,
&objectAttributes,
&IoStatus,
0,
FILE_ATTRIBUTE_NORMAL,
FILE_SHARE_WRITE | FILE_SHARE_WRITE,
FILE_OPEN_IF,
FILE_SYNCHRONOUS_IO_NONALERT,
NULL,
0 );
I guess the problem is in the way I create the file, but what ?
Thomas