COM and Registry (COM notes)

Source: Internet
Author: User

1. hkey_classes_root
1> the CLSID subkey records all COM component information:
A> the inprocserver32 sub-Key of the CLSID sub-Key of the (in-process component) OBJECT records the full path File Name of the component program;
The localserver32 sub-Key of the CLSID sub-Key of the (out-of-process component) OBJECT records the full path File Name of the component program;
B> the progid (Program identifier, program identifier) of the CLSID subkey defines the string name of the component.

2> the component string name can be placed directly under the CLSID subkey.
The string name of the component. The clsid sub-Key of the sub-key records the CLSID of the component.

3> the interface subkey records the Component Interface Information:
For example, proxystubclsid32

4> the typelib subkey records the type library information.
Component Objects are categorized by whether the same group of interfaces is supported. Each category has its catid,
The implemented categories sub-Key of the CLSID sub-key records its catid
Component categories includes all categories
Use oleview.exe to view categories

Ii. Component registration,
In-process components must implement the dllregisterserver function and the dllunregisterserver function to add/delete relevant information to the Registry, and then use the regsvr32.exe utility for registration;
Components outside the process must implement the command line parameter/regserver and/unregserver to add/delete relevant information to/from the registry.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.