Wait Method

Waits for specified period of time (in milliseconds) while overlapped read/write operation is in progress.

Syntax

Visual Basic
Function Wait(time As Long) As Boolean 
Visual C++ (MFC)
BOOL Wait(long time);
Visual C++ (#import)
VARIANT_BOOL Wait(LONG time);

Parameters

time

[in] time (in milliseconds) while waiting of overlapped read/write operation.

Return

Returns true if the operation is completed, false otherwise.