10.2 Maintaining and Using the Database

A server application should register the key/value pairs shown in the following example when it is installed. This example shows the form of key/value pairs as they would be added to the database using the appropriate function calls to SHELL.DLL or by creating the text file INI.REG and merging it using REGLOAD.EXE.

HKEY_CLASSES_ROOT\.ext = class name

HKEY_CLASSES_ROOT\class name = readable version of class name

HKEY_CLASSES_ROOT\class name\protocol\StdFileEditing\server = executable file name

HKEY_CLASSES_ROOT\class name\protocol\StdFileEditing\handler = dll name

HKEY_CLASSES_ROOT\class name\protocol\StdFileEditing\verb\0 = primary verb

HKEY_CLASSES_ROOT\class name\protocol\StdFileEditing\verb\1 = secondary verb

Servers that support the OleExecute function should also add the following line to the database:

HKEY_CLASSES_ROOT\class name\protocol\StdExecute\server = executable file name

A server application should register the entire path name for its executable file since registering only the name fails if the application is installed in a directory not set in the PATH environment variable.