Time_Sleep ( Milliseconds )
Generates a wait period using the specified number of milliseconds.
Syntax
HRESULT Time_Sleep(
[in] long Milliseconds,
[out, retval] VARIANT_BOOL* Success
);
Parameters
Milliseconds
[in] The number of milliseconds to wait.
Success
[out, retval] TRUE if the Milliseconds value is greater than or equal to 0 and less than or
equal to 999999, and FALSE if value is outside this range.
Remarks
The call to this function will not return until after the wait time has expired.