On Wed, Jul 23, 2008 at 4:27 PM, siddhartha veedaluru <
[EMAIL PROTECTED]> wrote:

>   Hi,
>
>  Tried the following snippet:
>
> import os, sys
> from _winreg import *
> KEY_WOW64_64KEY = 256
> regHandle =
> OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\Myapp\Base",0,KEY_WOW64_64KEY)
> val = QueryValue(regHandle,"nPLATTYPE")
> print val
> Got the following error
>
> Traceback (most recent call last):
>   File "C:\Precert\test.py", line 4, in <module>
>     regHandle =
> OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\MyApp\Base",0,KEY_WOW64_64KEY)
> WindowsError: [Error 5] Access is denied
>
> Please help,.
>
> regards
> Sid
>
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to