Description for iowkit.dll - Code Mercenaries
Description for iowkit.dll - Code Mercenaries
Description for iowkit.dll - Code Mercenaries
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
IO-Warrior Dynamic Library<br />
<strong>for</strong> Windows V1.5<br />
<strong>Code</strong> <strong>Mercenaries</strong><br />
IowKitCancelIo<br />
<strong>Description</strong>:<br />
BOOL IOWKIT_API IowKitCancelIo(IOWKIT_HANDLE devHandle, ULONG numPipe);<br />
function IowKitCancelIo(devHandle: IOWKIT_HANDLE; numPipe: ULONG): BOOL; stdcall;<br />
Cancel a read or write operation under way on one of the pipes.<br />
This function is seldom used, because you need several threads in your program to be able to call it at all.<br />
IowKitRead() blocks the thread so you need another thread <strong>for</strong> canceling. Setting the timeouts is an<br />
easier way <strong>for</strong> handling read or write problems.<br />
The function cancels pending read and write operations simultaneously.<br />
Sample usage:<br />
// cancel I/O <strong>for</strong> I/O pins<br />
IowKitCancelIo(ioHandle, IOW_PIPE_IO_PINS);<br />
...<br />
IO-Warrior Dynamic Library V1.5 8. Dez 2005 17