The following figure shows the syntax of SysRegisterObjectClass:

Syntax:  SysRegisterObjectClass(class_name, module_name)

where

class_name      Name of the Workplace Shell class of which the object
                is a member, such as WPFolder.
module_name     Name of the DLL from which the object is loaded from.

The following figure shows the syntax of SysDeregisterObjectClass:

Syntax:  SysDeregisterObjectClass(class_name)

where

class_name     Name of the Workplace Shell class to deregister.

In the following sample code REXX registers the class MyClass from the DLL defined with the fully qualified path to the system. All of the properties of the class MyClass are loaded through MYCLASS.DLL. Deregistering the class simply involves passing the class_name to successfully free the class from the system.

/* */
call RxFuncAdd "SysLoadFuncs", "rexxutil", "SysLoadFuncs"
call SysLoadFuncs

say SysRegisterObjectClass("MyClass", "c:\pgm\myclass.dll")
say SysDeregisterObjectClass("MyClass")

call SysQueryClassList "list."

do i=1 to list.0
  say 'class ' i  ' is ' list.i
end


[Back] [Next]