C Examples: DbiCloseSession

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

C Examples: DbiCloseSession

Return to chapter overview

Close the current session.

DbiCloseSession releases all session resources. This example uses the following input:
         fDbiCloseSession();

DBIResult fDbiCloseSession(VOID)

{

   DBIResult   rslt;

   hDBISes     hSes;

 

   rslt = Chk(DbiGetCurrSession(&hSes));

   if (rslt != DBIERR_NONE)

      return rslt;

 

   rslt = Chk(DbiCloseSession(hSes));

 

   return rslt;

}