//-------------------------------------------------------------------
// ECLSession::GetOIA
//
// Get OIA object from session object and use it.
//-------------------------------------------------------------------
void Sample70() {
ECLSession *Sess; // Pointer to Session object for connection A
ECLOIA *OIA; // OIA object pointer
try {
Sess = new ECLSession('A');
OIA = Sess->GetOIA();
if (OIA->InputInhibited() == NotInhibited)
printf("Input is not inhibited.\n");
else
printf("Input is inhibited.\n");
delete Sess;
}
catch (ECLErr Err) {
printf("ECL Error: %s\n", Err.GetMsgText());
}
} // end sample