Hi,
I'm working on a device driver which supports asynchronous
(overlapped) I/O.
However, overlapped I/O doesn't work if the user didn't set
FILE_FLAG_OVERLAPPED when calling CreateFile(). I want to override
this and "reopen" the file with FILE_FLAG_OVERLAPPED set.

ReOpenFile() can solve this, but requires Windows Server 2003.

Is there a solution for Windows 2000 / NT 4.0 ?


TIA,

Yair

Re: override FILE_FLAG_OVERLAPPED by Maxim

Maxim
Mon May 31 08:45:38 CDT 2004

You cannot. And why this need? Only your code will work with your driver,
am I wrong?

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


"Yair E" <freezer@012.net.il> wrote in message
news:cf4011f6.0405310529.252774b0@posting.google.com...
> Hi,
> I'm working on a device driver which supports asynchronous
> (overlapped) I/O.
> However, overlapped I/O doesn't work if the user didn't set
> FILE_FLAG_OVERLAPPED when calling CreateFile(). I want to override
> this and "reopen" the file with FILE_FLAG_OVERLAPPED set.
>
> ReOpenFile() can solve this, but requires Windows Server 2003.
>
> Is there a solution for Windows 2000 / NT 4.0 ?
>
>
> TIA,
>
> Yair



Re: override FILE_FLAG_OVERLAPPED by Alex

Alex
Mon May 31 09:44:53 CDT 2004

Unless the application is aware FILE_FLAG_OVERLAPPED was used it won't be
able to properly function.
Read/Write operation will fail unless a OVERLAPPED structure is initialized
and used.

"Yair E" <freezer@012.net.il> wrote in message
news:cf4011f6.0405310529.252774b0@posting.google.com...
> Hi,
> I'm working on a device driver which supports asynchronous
> (overlapped) I/O.
> However, overlapped I/O doesn't work if the user didn't set
> FILE_FLAG_OVERLAPPED when calling CreateFile(). I want to override
> this and "reopen" the file with FILE_FLAG_OVERLAPPED set.
>
> ReOpenFile() can solve this, but requires Windows Server 2003.
>
> Is there a solution for Windows 2000 / NT 4.0 ?
>
>
> TIA,
>
> Yair



Re: override FILE_FLAG_OVERLAPPED by Alexander

Alexander
Mon May 31 09:50:53 CDT 2004

A driver either support asynchronous I/O or not. All drivers support
synchronous I/O, no matter what. If a file is opened without
FILE_FLAG_OVERLAPPED, then it's the application wants it this way, and the
driver should not care about it.

"Yair E" <freezer@012.net.il> wrote in message
news:cf4011f6.0405310529.252774b0@posting.google.com...
> Hi,
> I'm working on a device driver which supports asynchronous
> (overlapped) I/O.
> However, overlapped I/O doesn't work if the user didn't set
> FILE_FLAG_OVERLAPPED when calling CreateFile(). I want to override
> this and "reopen" the file with FILE_FLAG_OVERLAPPED set.
>
> ReOpenFile() can solve this, but requires Windows Server 2003.
>
> Is there a solution for Windows 2000 / NT 4.0 ?
>
>
> TIA,
>
> Yair