LBR$Module_Exists

LBR ››
Parent Previous Next

LBR$Module_Exists

Check if module exists


LBR$Module_Exists indicates if a module exists in a library.


Format:

LBR$Module_Exists context name {result}


Returns:

Returns a condition code.


Arguments:

context

The address of a 64-bit context value returned by LBR_INI_CONTROL that indicates the library to access.


name

The address of a TSRB structure that points to the name of the module. If the value is 0 or points to a null name, an error is returned.


result

The address of a 64-bit integer value to be set.


Description

The integer at the specified address is set indicating whether or not the module exists. If the module exists the value is set to 1, otherwise it is set to 0.


Condition Codes Returned:

Code

Meaning

LBR_ILLCTL

Specified context is not valid.

LBR_LIBNOTOPN

Specified library is not open.

SS_NORMAL

Successful completion.