Results 1 to 5 of 5

Thread: QSettings HKEY_CLASSES_ROOT access

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Nov 2006
    Location
    Shrewsbury, UK
    Posts
    97
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QSettings HKEY_CLASSES_ROOT access

    Back in the old days of Windows NT, HKEY_CLASSES_ROOT was a simple alias for HKEY_LOCAL_MACHINE\SOFTWARE\Classes. This was a useful thing to know as when trying to read a remote registry with regedt32 (not regedit which never ran remotely), you could exploit this alias.

    However in the days of Windows 2000/3 and XP, HKEY_CLASSES_ROOT is actually created from a merger of HKEY_LOCAL_MACHINE\SOFTWARE\Classes and HKEY_CURRENT_USER\SOFTWARE\Classes with values in the latter overriding values in the former. It is this feature that enables features like per-user COM object registration. You need administation right to register objects globally on the machine. You can prove this with regedit by creating the same key in both hives, then seeing which one takes precedence.

    Hope this helps

    Pete

  2. The following user says thank you to pdolbey for this useful post:

    Arsenic (7th July 2007)

Similar Threads

  1. ODBC and MS Access
    By allensr in forum Qt Programming
    Replies: 2
    Last Post: 10th April 2007, 23:41
  2. Replies: 1
    Last Post: 4th October 2006, 16:05
  3. Replies: 5
    Last Post: 14th July 2006, 22:42
  4. inserting string > 127 characters to MS Access
    By jh in forum Qt Programming
    Replies: 0
    Last Post: 12th May 2006, 17:11
  5. QSettings vs (QFile + Qtextstream)
    By nupul in forum Newbie
    Replies: 5
    Last Post: 10th April 2006, 07:26

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.