Overlapped Constructor (Int32, Int32, Int32, IAsyncResult^)
Initializes a new instance of the Overlapped class with the specified file position, the 32-bit integer handle to an event that is signaled when the I/O operation is complete, and an interface through which to return the results of the operation.
Assembly: mscorlib (in mscorlib.dll)
public: [ObsoleteAttribute("This constructor is not 64-bit compatible. Use the constructor that takes an IntPtr for the event handle. http://go.microsoft.com/fwlink/?linkid=14202")] Overlapped( int offsetLo, int offsetHi, int hEvent, IAsyncResult^ ar )
Parameters
- offsetLo
-
Type:
System::Int32
The low word of the file position at which to start the transfer.
- offsetHi
-
Type:
System::Int32
The high word of the file position at which to start the transfer.
- hEvent
-
Type:
System::Int32
The handle to an event that is signaled when the I/O operation is complete.
- ar
-
Type:
System::IAsyncResult^
An object that implements the IAsyncResult interface and provides status information on the I/O operation.
Use the WaitHandle::Handle property to get the handle of any managed synchronization event that derives from the WaitHandle class.
Your implementation of IAsyncResult provides status information on the I/O operation. Pass it to the constructor in the ar parameter, and retrieve it later with the AsyncResult property. If a callback method is specified for the Pack or UnsafePack method, the callback can retrieve your IAsyncResult by unpacking the NativeOverlapped structure it receives.
Available since 1.1