Re: Registering ActiveX control on Vista



Markus,

I haven't used this, so I am not sure. However, I am guessing that the
Registry Virtualization feature of User Account Control (UAC) may be messing
with you.

Are you logging in as a standard user?

You could also try logging in as an administrator *and* using the "Run As
Administrator" menu item. This is just to help identify what is going on, I
realise that's not how you need it to work in the long run.

Paul

"Markus Raabe" <markus.raabe@xxxxxxxxxxxxxxxx> wrote in message
news:E88AD69C-B33D-47C3-A9B7-0977FC22629A@xxxxxxxxxxxxxxxx
Unfortunately I don't have the source of the control I want to use. Only
the
binaries.
Is overriding not possible any more in Windows Vista?

Markus

"Alexander Nickolov" wrote:

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: How to access current user key of other users?
    ... Advanced Registry Editing: ... I am the "system administrator" of our home computer running XP. ... is a account for each member of my family. ... should be able to work on the registry keys of others as well. ...
    (microsoft.public.windowsxp.basics)
  • Re: Administrators nightmare!
    ... Sounds Like Quick Books :-( Logon as Administrator and run regedt32 and ... locate the Registry keys for the software and right click and select ... permissions and give the users the permissions needed for the registry. ...
    (microsoft.public.windows.server.sbs)
  • Re: Non admin users cant do things they need to do
    ... You mean they are along with the registry entires? ... i added the keys below to the registry (as administrator) logged off, ... can set the time then they can fake out system event logs by changing ...
    (microsoft.public.windowsxp.embedded)
  • Re: office update is unable to check for updates
    ... Windows Installer version 1.0 to Windows Installer version 1.1. ... Here is another post I saw on the forums that seems to have work for other users, but it requires advanced knowledge of the OS, basically registry editing, so please be careful if you try it. ... we need to manually delete all the registry keys for Office. ...
    (microsoft.public.officeupdate)
  • Re: Service Pack 3 - Access Denied?
    ... resetting registry key permissions trashed my system every single time - it ... You may think you are the Administrator, but in reality you probably aren't. ... If your logged-in account identity is labeled "Computer Administrator" (under ... operating system files and the all branches of the "Windows Registry." ...
    (microsoft.public.windowsupdate)

Loading