Name

Overlapped

Synopsis

This class encapsulates the Win32 API OVERLAPPED structure. NativeOverlapped is needed to mimic the structure the API expects, but this class encapsulates the overlapped structure into a .NET class. You can create NativeOverlapped structures by calling Pack(), and create Overlapped objects with the shared Unpack() method. To avoid a memory leak, each NativeOverlapped that you create must also be freed by calling the sharedFree() method. Unpack() does not free the memory.

Public Class Overlapped
                  ' Public Constructors
   Public Sub New() 
   Public Sub New(ByVal offsetLo As Integer, 
        ByVal offsetHi As Integer, ByVal hEvent As Integer, 
        ByVal ar As IAsyncResult) 
' Public Instance Properties
   Public Property AsyncResult As IAsyncResult  
   Public Property EventHandle As Integer  
   Public Property OffsetHigh As Integer  
   Public Property OffsetLow As Integer  
End Class

Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.