Make your own free website on
8.2.4 The RexxDeregisterSubcom() function

This function is used to remove a particular environment from the
list of registered environments. The prototype of the function is:

     APIRET APIENTRY RexxDeregisterSubcom(
           PSZ EnvName,
           PSZ ModuleName
     ) ;

Both parameters are input values:

          Pointer to ASCII NUL terminated string, which represents
          the name of the environment to be removed.
          Also an ASCII NUL terminated string, which points to the
          name of  the module containing the subcommand handler of
          the environment to  be deleted.

The list of defined environments is searched, and if an
environment matching the one named by the first parameter are
found, it is deleted.

The returned value from RexxDeregisterSubcom() can be one of:

          The subcommand handler was successfully deleted.
          The subcommand handler was not found.
          One or more of the parameters had illegal values, and
          the operation was not carried through.

Most systems that do have dynamic linking have no method for
reclaiming the space used by dynamically linked routines. So, even
if you were able to load a dll, there are no guarantees that you
will be able to unload it.