Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
IOCompletionCallback Delegate

IOCompletionCallback Delegate

Receives the error code, number of bytes, and overlapped value type when an I/O operation completes on the thread pool.

[Visual Basic]
Public Delegate Sub IOCompletionCallback( _
   ByVal errorCode As UInt32, _
   ByVal numBytes As UInt32, _
   ByVal pOVERLAP As NativeOverlapped* _
public delegate void IOCompletionCallback(
   uint errorCode,
   uint numBytes,
   NativeOverlapped* pOVERLAP
public __gc __delegate void IOCompletionCallback(
   unsigned int errorCode,
   unsigned int numBytes,
   NativeOverlapped* pOVERLAP

[JScript] In JScript, you can use the delegates in the .NET Framework, but you cannot define your own.

Parameters [Visual Basic, C#, C++]

The declaration of your callback method must have the same parameters as the IOCompletionCallback delegate declaration.

The error code.
The number of bytes that are transferred.
A NativeOverlapped representing an unmanaged pointer to the native overlapped value type.


Namespace: System.Threading

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System.Threading Namespace

© 2015 Microsoft