CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2000
    Posts
    1,471

    A question regarding HKEY_LOCAL_MACHINE and HEKY_CLASSES_ROOT?

    A class id of a COM dll may be created under HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID or may be created under HKEY_CLASSES_ROOT\CLSID in registry. Is there any difference between them? In order to register a COM dll, should a COM dll be registered in both or one of them? Thanks for your inputs.

  2. #2
    Join Date
    Feb 2003
    Location
    Iasi - Romania
    Posts
    8,244

    Re: A question regarding HKEY_LOCAL_MACHINE and HEKY_CLASSES_ROOT?

    Quote Originally Posted by dullboy View Post
    Is there any difference between them?
    No, HKEY_CLASSES_ROOT\CLSID and HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID are synonymous.

    HKEY_CLASSES_ROOT is a "merged view" of HKEY_LOCAL_MACHINE\Software\Classes and HKEY_CURRENT_USER\Software\Classes.
    See HKEY_CLASSES_ROOT Key and Merged View of HKEY_CLASSES_ROOT in MSDN.
    Last edited by ovidiucucu; October 20th, 2010 at 04:51 AM.
    Ovidiu
    "When in Rome, do as Romans do."
    My latest articles: https://codexpertro.wordpress.com/

  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: A question regarding HKEY_LOCAL_MACHINE and HEKY_CLASSES_ROOT?

    You can have per user COM configurations (stored in HKEY_CURRENT_USER\Software\Classes) or machine wide COM configurations (stored in HKEY_LOCAL_MACHINE\Software\Classes). HKEY_CLASSES_ROOT\CLSID shows you both. Also see this http://msdn.microsoft.com/en-us/library/bb756926.aspx.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: A question regarding HKEY_LOCAL_MACHINE and HEKY_CLASSES_ROOT?

    Why not search the COM documentation for how to register COM objects?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured