DbiGetCurrSession

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

DbiGetCurrSession

Return to chapter overview

C syntax

DBIResult DBIFN DbiGetCurrSession (phSes);

Delphi syntax

function DbiGetCurrSession (var hSes: hDBISes): DbiResult stdcall;

Description

DbiGetCurrSession returns the handle associated with the current session.

Parameters

phSes                Type: phDBISes                (Output)
Pointer to the current session handle.

Completion state

This function returns the handle to current session, that is, the handle identified by the most recent call to DbiSetCurrSession or DbiStartSession. If neither of these calls has been made, DbiGetCurrSession returns the handle to the default session.

DbiResult

Meaning

DBIERR_NONE

The current session handle has been retrieved successfully.

DBIERR_INVALIDHNDL

phSes is NULL.

See also

DbiSetCurrSession, DbiStartSession, DbiCloseSession, DbiGetSysInfo, DbiGetSesInfo