Re: RegOpenKeyEx

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Sep 24, 5:48 am, "Remy Lebeau" <no.s...@xxxxxxxxxxx> wrote:
"kiran" <kiran.in...@xxxxxxxxx> wrote in message

news:b41c5c1c-a2e8-44c0-8d35-7ee89c4de314@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Below is the piece of code I am using,

What does the contents of regKey actually look like?

KEY_READ includes KEY_QUERY_VALUE, KEY_ENUMERATE_SUB_KEYS, and KEY_NOTIFY
permissions.  Does the user account the code is running under actually have
all of those permissions?  Since you are only interested in querying for
existance, try KEY_QUERY_VALUE by itself.

--
Remy Lebeau (TeamB)

The regKey is HKEY_LOCAL_MACHINE\SOFTWARE\Google\Google Toolbar
\Component and I have tried with KEY_QUERY_VALUE and the result is
same.
I dont think it is related to permissions because as I said earlier it
works after opening regedit manually.
.



Relevant Pages

  • Not allowing annonoumus access with FTP
    ... We have put in a ftp server as a way of sharing files (dont ask...I dont ... permissions on there to secure it down so only certain users or created ... Is it done with AD in setting up a user account and then giving that user ...
    (microsoft.public.inetserver.iis.security)
  • Re: Everyone group has change password permissions?
    ... I dont think I was too clear...each user account has the "Everyone" group ... listed in Security with "Change Password" permissions. ...
    (microsoft.public.win2000.security)
  • Re: cannot be upgraded to the OhttpEM version of Windows Small Busines
    ... Double check the permissions (did you propagate to all folders beneath?) and ... the regkey you added - you may have a typo. ... He change the permissions in Inetpub Folder. ...
    (microsoft.public.windows.server.sbs)
  • Re: RegOpenKeyEx
    ... What does the contents of regKey actually look like? ... Does the user account the code is running under actually have ... all of those permissions? ... Remy Lebeau (TeamB) ...
    (microsoft.public.win32.programmer.kernel)
  • Re: RWW - Local Policy connect to desktop issue
    ... it seems as if it is infact something with that user account. ... permissions as well as the replace permissions. ... only difference I see is in the logon script. ... firewall properties and enabled the Remote Desktop service. ...
    (microsoft.public.windows.server.sbs)