* @exception E_TIMEOUT The time is expired.
* @exception E_INVALID_STATE The waiting loop has already been waiting on a callback event. In order to wait again, you must quit the waiting loop.
* @remarks The timeout set to min(timeout, maximum), where the maximum is set using SetMaxTimeoutForWaiting().
* @exception E_TIMEOUT The time is expired.
* @exception E_INVALID_STATE The waiting loop has already been waiting on a callback event. In order to wait again, you must quit the waiting loop.
* @remarks The timeout set to min(timeout, maximum), where the maximum is set using SetMaxTimeoutForWaiting().