Re: Registering ActiveX control on Vista



Change your registration code to not store data in HKCR,
but to store it in HKCU\Software\Classes instead. No need
to override registry keys then.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Markus Raabe" <markus.raabe@xxxxxxxxxxxxxxxx> wrote in message
news:09A40734-8900-472C-BE06-7E694BBD8286@xxxxxxxxxxxxxxxx
On WinXP it is possible to register an ActiveX contol on a per user basis
with

FARPROC lpDllEntryPoint = GetProcAddress(hLib, "DllRegisterServer");
if (lpDllEntryPoint != NULL) {
HKEY hKeyCurrentUser;
RegOpenKeyEx(HKEY_CURRENT_USER, L"Software\\Classes", 0, KEY_ALL_ACCESS,
&hKeyCurrentUser);
RegOverridePredefKey(HKEY_CLASSES_ROOT, hKeyCurrentUser);
RegCloseKey(hKeyCurrentUser);
(*lpDllEntryPoint)();
RegOverridePredefKey(HKEY_CLASSES_ROOT, HKEY_CLASSES_ROOT);
} else {

Registry keys are generated under HKCU so no administrator permissions are
required. Under Vista (beta2) this does not work. No keys are generated.
Does anyone know why and what to change?
Thanks
Markus


.



Relevant Pages

  • Re: Help!!! I get "Access Denied" message .........
    ... > Your caution to unknown freeware is very healthy, ... It was written by a Microsoft MVP, ... > You'll need to check permissions on various files and registry keys, ... > mentioned and look for ACCDENIED errors: report back and we'll help you dig ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Folder (program) opens at startup of PC
    ... There are some entries in the listing that are not enclosed within ... corresponding registry keys and fix the Value data for the entries starting ... Microsoft MVP ... during startup a folder is opened and displayed ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Help!!! I get "Access Denied" message .........
    ... Look at this post to see what Jimmy S. and I are doing so far. ... > Your caution to unknown freeware is very healthy, ... It was written by a Microsoft MVP, ... > You'll need to check permissions on various files and registry keys, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Expand Special Folder on the Start Menu
    ... Surely you weren't made a Microsoft MVP ... > Associate Expert - WindowsXP Expert Zone ... >> Restore a lot and back up registry keys, ... >>> the function of the folder (or any special folder), ...
    (microsoft.public.windowsxp.general)
  • Re: Registry keys
    ... Microsoft MVP [Windows] ... "Noah" wrote: ... | Is it possible to delete registry keys without loading xp. ...
    (microsoft.public.windowsxp.configuration_manage)

Loading