To enable the SMS Administrator to use the graphics in a resource-only DLL, you must install the DLL and add keys to the Windows NT Registry of the computer where the SMS Administrator is installed.
These steps are described in detail in the following paragraphs.
Install the resource-only DLLs in a directory that is in the path of the computer where the SMS Administrator is installed. Optionally, you can place the DLLs in their own directory and specify a fully qualified path when you configure the Windows NT Registry to complete the installation of the DLL.
Caution Do not install your resource-only DLLs in a purgeable SMS directory.
When the SMS setup program is used to upgrade site components, the SMS setup program removes all files from the SMS directories marked with the SM_DIRECTORY_PURGEABLE flag in the SYSTEM.MAP file. Those files are then replaced with files copied from the SMS CD-ROM by SMS Setup. The following directories are purgeable SMS directories:
where sms_install_drive is the drive where SMS is installed, smsroot is the name of the directory where the SMS installation directory resides, and platform.BIN is the processor type of the computer—X86.BIN, ALPHA.BIN, or MIPS.BIN.
Note that you can create subdirectories within purgeable directories. These subdirectories and their contents will not be removed on an upgrade. However, if SMS is removed from the computer the entire SMS root directory is removed.
The set of DLLs can be specified by using the following registry keys:
When the SMS Administrator searches for display graphics in the resource-only DLLs, it searches the DLLs in the following order:
HKEY_LOCAL_MACHINE\Software\Microsoft\SMS
HKEY_CURRENT_USER\Software\Microsoft\SMS
Use HKEY_LOCAL_MACHINE if you want the DLL available to all users of the computer. Use HKEY_CURRENT_USER if you want the DLL available to only the current user.
If the SMS Administrator is running, exit and restart it.
This is a sample registry configuration:
HKEY_CURRENT_USER
Software
Microsoft
SMS
ResDLLs
Installed REG_MULTI_SZ DLLName1
DLLName2
DLLName3
DLLName1 PathName REG_SZ myres.dll
DLLName2 PathName REG_SZ myicons.dll
DLLName3 PathName REG_SZ oemicons.dll
In the preceding example, the SMS Administrator would search for a named graphic in the following order: OEMICONS.DLL, MYICONS.DLL, MYRES.DLL, and finally the SMS application resource.