[out] The timeout value for the I/O session (in milliseconds).
GetTimeout
Gets the timeout value for the I/O session (in milliseconds).
Syntax
Section titled “Syntax”virtual HRESULT GetTimeout(long* plTimeout) abstract;Parameters
Section titled “Parameters”str
Return value
Section titled “Return value”Returns S_OK if successful, otherwise a failure HRESULT.
Remarks
Section titled “Remarks”The default timeout is 2000 ms.
Example
Section titled “Example”The following example demonstrates use of the SetTimeout function.
HRESULT Acme4321::OnFinalInitialize(){ HRESULT hr = S_OK;
// Set the I/O session timeout value to 5000 ms hr = io.SetTimeout(5000);
return hr;}