Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

© 2017 Microsoft