Hi,
Can any one elaborate on the create option “FILE_SYNCHRONOUS_IO_ALERT” of
ZwCreateFile? I want to know exactly how the caller of the function is
“alerted”?
Thanks for the same.
Regards,
Chakradhar Kommuri
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
This means - read/write/IOCTL operations on this file can be interrupted by
Ctrl-C.
The routine which sends the IRP to the driver is called
IopSynchronousServiceTail.
If IoCallDriver returns STATUS_PENDING, it waits on some event.
If FILE_SYNCHRONOUS_IO_ALERT was specified during file creation - the wait
is Alertable.
If Ctrl-C is pressed, the thread is alerted and the wait returns
STATUS_ALERTED or STATUS_USER_APC.
If wait returned this code, IopSynchronousServiceTail cancels the IRP which
was sent.
Otherwise, the wait is not Alertable and IopSynchronousServiceTail waits
till completion, thus blocking Ctrl-C processing.
Max
----- Original Message -----
From:
To: “NT Developers Interest List”
Sent: Tuesday, July 31, 2001 12:00 AM
Subject: [ntdev] Help on ZwCreateFile…
> Hi,
> Can any one elaborate on the create option “FILE_SYNCHRONOUS_IO_ALERT” of
> ZwCreateFile? I want to know exactly how the caller of the function is
> “alerted”?
>
> Thanks for the same.
> Regards,
> Chakradhar Kommuri
>
> —
> You are currently subscribed to ntdev as: xxxxx@storagecraft.com
> To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
>
—
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com