Passing Parameters Using the DskParam Structure

The DskParam structure consists of a header and a body. The header specifies the type of parameter being passed. Header values are defined in the jomtypno.h file. Valid parameter types are defined in the jomtypes.h file.

The body contains the parameter value and combines all of the C++ types that are currently supported. When a method contains more than one parameter, these C++ types are passed by the pParams parameter in the parameterList format of DskParam.

A parameterList is an array of pointers to DskParam structures, with one pointer for each parameter. If a parameter is not used or is not defined, a NULL pointer may be used; for example, when a method has no parameters or it does not return a value.

Use the following functions declared in jomparam.hpp to get and set parameter values in a DskParam structure.