Programming Guide: cmgrcmd Utility

# Programming Guide

## cmgrcmd Utility

This utility works on only Windows and OS/2 platforms.

This utility provides command line access to the Component Manager.

    cmgrcmd [-r type stype flags class dll version manufacturer name info]
            [-d type stype]
            [-l]
            [-s type stype]
            [-h | -?]

The fields for this utility are:

-r | Register the component specified by the arguments.
-d | Delete the component specified.
-l | List the contents of the registry.
-s | Show the registry entry specified.
-h | Show the syntax specification.
-? | Show the syntax specification.
type | A 1 to 4 character string for the component type. This code is defined by OpenDoc and acts as an identifier for the set of components that support some OpenDoc function. For example, "ODDS" is the code used as the type for all components that support OpenDoc direct scripting.
stype | The 1 to 4 character string for component subtype. This code is a unique identifier of a particular component.
flags | The capability flags, as defined for this type and as supported by this subtype. A set of bit-significant flags defined in the context of a particular type and identifies any variation on the support provided by the component. Each type attaches a different meaning to these bits. Scripting flags are defined in the `scrcomp.xh` binding file.
class | The name of the SOM class that supports this entry.
dll | The name of the DLL that contains the supporting code.
version | The numeric version of the class.
manufacturer | The manufacturer code, a 1 to 4 character string.
name | The descriptive name for this entry.
info | Any additional descriptive information for this entry.

Notes:

1. type, stype and manufacturer will be truncated to 4 characters.

2. flags and version may be entered in hexadecimal, octal, or decimal.

[ Top | Previous | Next | Contents | Index | Documentation Homepage ]