O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NativeOverlapped

Synopsis

This structure has the same layout as the Win32 OVERLAPPED structure, with extra reserved data at the end, which is provided for backwards compatibility. Create a NativeOverlapped instance by calling Overlapped.Pack(). Each time an instance is created, it must be freed by calling the static method Overlapped.Free() to avoid a memory leak.

public struct NativeOverlapped {
// Public Instance Fields
   public field int EventHandle;  
   public field int InternalHigh;  
   public field int InternalLow;  
   public field int OffsetHigh;  
   public field int OffsetLow;  
}

Hierarchy

System.ObjectSystem.ValueTypeNativeOverlapped

Returned By

Overlapped.{Pack(), UnsafePack()}

Passed To

IOCompletionCallback.{BeginInvoke(), Invoke()}, Overlapped.{Free(), Unpack()}

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required