GetSafeHandle 

Purpose

Obtains a verified, live connection handle.

Syntax

C_HANDLE GetSafeHandle(void);

Return Value

Returns a valid RFC handle if connection is alive and user logon information is valid. Otherwise returns RFC_HANDLE_NULL.

Exceptions

Throws const char* for memory exceptions.

Throws RFC_ERROR_INFOR for RfcCall failure.

Description

Use this method to obtain a live RFC connection handle and verify user logon information.

Related Information

GetHandle

SafeOpen

SafeConnect