lrd_env_init

Example: lrd_env_initOracle 8.0 Functions

Allocates and initializes an LRDDBI handle. (Oracle 8.0 and later)

LRDRET lrd_env_init( unsigned int muiDBType, void **mppvLRDDBIHandleEnv, unsigned long muliMode, int miDBErrorSeverity);

muiDBType The target Database Types.
mppvLRDDBIHandleEnv A pointer to a pointer to an LRDDBI handle.
muliMode The operation mode.
miDBErrorSeverity The Error Severity Levels of a failure in a database routine.

The lrd_env_init function allocates and initializes an LRDBI environment handle. If the pointed-to pointer is NULL, a new LRDDBI environment handle is allocated. If the value is non-NULL, if the pointed-to LRDDBI handle has the requested attribute, no new LRDDBI handle is allocated, and the function returns successfully. Otherwise, the LRDRET_E_EXISTING_HANDLE_ERROR is returned.

This function is only supported for Oracle 8.0 and higher.

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

Return Values

See LRD Return Values.

Parameterization

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