Article ID: 183771 - Last Review: May 12, 2003 - Revision: 2.0 INFO: Registry Entries Made by an ActiveX ComponentThis article was previously published under Q183771 SUMMARY
An ActiveX component can be either an in-process or out-of-process (local
or remote) server. When registering an ActiveX component on a Windows 95,
Windows 98, Windows Me, Windows NT 4.0 or Windows 2000 machine, specific entries are made in the Windows Registry that allow the components to be accessed by client applications. An ActiveX control is an example of an in-process server that is registered in the Windows Registry. The purpose of this article is to outline some of the Registry entries for an ActiveX component in order to assist in troubleshooting registry issues that may arise.
MORE INFORMATION
An in-process component can be registered by using a utility such as
Regsvr32.exe. The utility makes a call to the component's DllRegisterServer
method. At this point, a series of entries is made in the Windows Registry.
The method for registering out-of-process servers can vary.
The scope of this article will only refer to one branch of the Registry: HKEY_CLASSES_ROOT. This same information can also be found in HKEY_LOCAL_MACHINE/Software/Classes. For troubleshooting and removal purposes, you only need to focus on HKEY_CLASSES_ROOT. In the HKEY_CLASSES_ROOT branch, you will initially find a list of file extensions. Following the file extensions are a combination of Programmatic Identifiers (ProgIDs) along with special keys that will be discussed shortly. ProgIDs are typically friendly names that refer directly to a component's ClassID. The typical format for a ProgID is <Application>.<Class>.<Version>. However, this format is not strictly enforced and often times the version portion is ignored. Examples of ProgIDs are "Word.Application.8" and "Excel.Chart." Each ProgID refers to a ClassID. The ClassID (or CLSID)is formatted as {xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx}. Along with ProgIDs, special keys such as AppID, CLSID, Component Categories, Interface, Licenses, and TypeLib are found directly below HKEY_CLASSES_ROOT. Information regarding your ActiveX component can be entered in any of these special keys. The focus of this article is only on the CLSID, TypeLib, and Interface special keys. For more information concerning these and other special keys, refer to the resources listed in the REFERENCES section of this article. IMPORTANT: This article contains information about editing the registry. Before you edit the registry, make sure you understand how to restore it if a problem occurs. For information about how to restore the registry, refer to the Help files in the Registry Editor (Regedit.exe). You can use this information to remove all references of a given component from the registry or to troubleshoot a possible registry problem. The following steps illustrate how you can step through the registry and find references to an ActiveX component:
REFERENCES
"Inside COM" by Dale Rogerson, Microsoft Press (ISBN 1-57231-349-8)
For a list of additional resources regarding the Windows 95, Windows 98, or Windows NT registry, please see the following article in the Microsoft Knowledge Base: 173014
(http://support.microsoft.com/kb/173014/EN-US/
)
: INFO: Windows Registry Resources
APPLIES TO
| Article Translations
|
Back to the top
