Managing Applications with the System Registry

Once system registry information has been created for demand loading, that same information can be used by a set of ObjectARX functions to load, unload, and monitor the presence of ObjectARX applications independent of the demand-loading feature. The AppName argument used by the first two of these functions is the logical application name.

The following ObjectARX functions can be used with registered application names:

bool acrxLoadApp ("AppName")

This function takes a single argument, which represents the case-insensitive logical name of the application to be loaded. The function returns 0 if the load failed, or 1 if the load succeeds.

bool acrxUnloadApp ("AppName")

This function takes a single argument, which represents the case-insensitive logical name of the application that was previously loaded. The function returns 0 if the unload fails, or 1 if it succeeds.

void *acrxLoadedApps ()

This function returns an array of strings as a void *, containing the logical application name of each application that is currently loaded. The function returns NULL if no applications are loaded. It is the caller's responsibility to release the space allocated for the returned strings.