The ISessionObject::get_Timeout method retrieves the value of the Timeout property of the Session object.
HRESULT get_Timeout(
LONG * plvar // pointer to a LONG that receives the Timeout value
);
Session Object, IServer::get_ScriptTimeout