Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 76219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T20:38:21+00:00 2026-05-10T20:38:21+00:00

The Win32 API call RegisterTypeLib() is used to create the registry keys necessary to

  • 0

The Win32 API call RegisterTypeLib() is used to create the registry keys necessary to register a type library.

Unfortunatly, on Windows XP, it tries to write those registry key entries to

HKEY_CLASSES_ROOT\TypeLib 

rather than

HKEY_CURRENT_USER\Software\Classes\TypeLib 

Meaning that a standard user will not be able to run an ActiveX.

In May 2008 Microsoft released a hotfix for Vista to correct this issue – but the problem remains on Windows XP.

What’s a standard-user friendly developer to do?


Answer 1

Use the API call that is designed for it:

RegisterTypeLibraryForUser()

Answer 2

If you can’t fix it, hack it:

//begin hack HKEY key; RegOpenKeyW(HKEY_CURRENT_USER, @'Software\Classes', out key); RegOverridePredefKey(HKEY_CLASSES_ROOT, key);  //do original work RegisterTypeLibrary(...)  //stop hacking RegOverridePredefKey(HKEY_CLASSES_ROOT, null); RegCloseKey(key);  
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T20:38:21+00:00Added an answer on May 10, 2026 at 8:38 pm

    You can use the RegOverridePredefKey() API to map the HKEY_CLASSES_ROOT regtree to HKEY_CURRENT_USER\Software\Classes:

    • http://msdn.microsoft.com/en-us/library/ms724901.aspx
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

since Windows Vista there is an new Win32-API call CreateSymbolicLink to create a symbolic
I know I can call the GetVersionEx Win32 API function to retrieve the Windows
What is the Win32 API call to determine the system-wide font (in particular the
I am using the Win32 API call SetForegroundWindow to set focus to another application's
I need to call into a Win32 API to get a series of strings,
I'm trying to draw vertical text in win32 GDI api. I call CreateFont() with
Is there a Win32 API call that detects the current hardware acceleration level of
I am using Win32::API to call an arbitary function exported in a DLL which
I am wondering which Win32 API call is creating the files with UNICODE path.
Is there a Win32 API call to determine what window and/or control is visible

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.