Re: DeviceIoControl and Timeout
From: Don Burn (burn_at_stopspam.acm.org)
Date: 08/04/04
- Next message: Andrew: "installing checked drivers"
- Previous message: Maxim S. Shatskih: "Re: getting the driver names from a device stack"
- In reply to: Dennis Burns: "DeviceIoControl and Timeout"
- Next in thread: Dennis Burns: "Re: DeviceIoControl and Timeout"
- Reply: Dennis Burns: "Re: DeviceIoControl and Timeout"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 4 Aug 2004 10:28:18 -0400
You either are handling a timeout independant of overlapped I/O or
independant of the driver. In the first model, a driver check a request for
the amount of time it has been waiting for data and complete the IRP with an
error if more time than desired has passed. The timeout value is either
fixed or passed in to the driver by another deviceiocontrol before the
request of the type with a timeout is issued.
With the second approack, you issue an overlapped I/O with an event then
wait on the event with a timeout, if the timeout occurs cancel the I/O.
There are many variations on these themes but these are the basic ones.
-- Don Burn (MVP, Windows DDK) Windows 2k/XP/2k3 Filesystem and Driver Consulting Remove StopSpam from the email to reply "Dennis Burns" <dburns@rtessentials.com> wrote in message news:%23bpoqAieEHA.3148@TK2MSFTNGP10.phx.gbl... > How do I specify a timeout when doing overlapped IO, and calling > DeviceIoControl? > > What does the driver have to do to implement this? > > How does the User mode code know when the timeout occurs? > > Thanks in advance for the help, > Dennis > >
- Next message: Andrew: "installing checked drivers"
- Previous message: Maxim S. Shatskih: "Re: getting the driver names from a device stack"
- In reply to: Dennis Burns: "DeviceIoControl and Timeout"
- Next in thread: Dennis Burns: "Re: DeviceIoControl and Timeout"
- Reply: Dennis Burns: "Re: DeviceIoControl and Timeout"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|