Example: lrd_alloc_connectionAccess Management Functions

Allocates a connection structure.

LRDRET lrd_alloc_connection( LRD_CONNECTION **mpptConnection, unsigned int muiDBType, LRD_CONTEXT *mptContext, long mliOption, int miDBErrorSeverity );

mpptConnection A pointer to a pointer to an LRD_CONNECTION structure.
muiDBType The target database type.
mptContext A pointer to an LRD_CONTEXT structure. (ODBC and CtLib only).
mliOption One of the Allocate Connection options (NULL).
miDBErrorSeverityThe Error Severity Levels of a failure in a database routine.

The lrd_alloc_connection function allocates an LRD_CONNECTION structure. The structure is valid until it is released with lrd_free_connection.

For more details refer to the Function Header File lrd.h in the include directory.

Return Values

See LRD Return Values.


You cannot use standard parameterization for any arguments in this function.