Re: Registering ActiveX control on Vista



I'm sorry, I don't know. You could look at the permissions of HKCR in
Regedit.

Maybe you will get more help posting to a Vista newsgroup or blog.

Paul

"Markus Raabe" <markus.raabe@xxxxxxxxxxxxxxxx> wrote in message
news:4D7D2392-CDD6-4886-9CA2-1B59F086A8A6@xxxxxxxxxxxxxxxx
Paul,
I tried the registration as standard user and as administrator. Both did
not
work.
If I try it ad Administrator and start the program with elevated
permissions
the registration is done, but the control is not loaded because the HKCU
is
not used.
If I start the program again with the same user but not as administrator
the
control is loaded.

So still the question is open why the registration as standard user is not
working. Is this disabled in vista?
Markus
"Paul Baker [MVP, Windows - Networking]" wrote:

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

  • Vista "complaints"
    ... Recent misconceptions about Vista and UAC posted to the Focus-Apple group, ... administrator, and combined with the many configuration options Vista ... that Win XP gave her the ability to add permissions to her normal ...
    (Focus-Microsoft)
  • RE: Vista "complaints"
    ... Recent misconceptions about Vista and UAC posted to the Focus-Apple group, ... administrator, and combined with the many configuration options Vista ... run an installation file need to do so in admin mode. ... that Win XP gave her the ability to add permissions to her normal ...
    (Focus-Microsoft)
  • Re: Can Vista be "locked down" ?
    ... Firefox &, without any warning, I got a BSOD. ... Firefox that Vista doesn't like. ... Administrator runs as standard user. ...
    (microsoft.public.windows.vista.general)
  • Re: Can Vista be "locked down" ?
    ... questions regarding "locking down" Vista with the tools supplied by ... they, too, can elevate their privileges when needed. ... Administrator runs as standard user. ... The Administrator runs as a Standard User With Extra Privileges, but a real Standard User requires the Adminstrator password to do such things as override the User Account Control, which prevents malware from installing itself silently. ...
    (microsoft.public.windows.vista.general)
  • Re: Turn OFF permissions.
    ... Windows Vista Preminum. ... You may not have appropriate permissions to access the item. ... Tried "Run as Administrator" and no joy. ...
    (microsoft.public.windowsxp.help_and_support)