Tech Support > Microsoft Windows > Drivers > Re: Create and Write to File in kernel-mode
Re: Create and Write to File in kernel-mode
Posted by Nick Ryan on July 13th, 2003


The convention is to also ask for SYNCHRONIZE access and specify
FILE_SYNCHRONOUS_IO_NONALERT in CreateOptions. Also, you're writing one
string and getting the 'sizeof' a completely different one. And why are
you specifying only FILE_SHARE_WRITE? You want to allow others to write
but not read? Did you intend FILE_SHARE_READ instead? Or just 0 for
exclusive access?

You should tell us exactly how the code fails, so we don't have to guess
blindly at what is wrong.

Megasus wrote:


Posted by Nick Ryan on July 13th, 2003


Read 'kernel-mode opens' for 'kernel-mode options'.

Nick Ryan wrote:



Similar Posts