[python-win32] python-win32 Digest, Vol 64, Issue 25
siddhartha veedaluru
siddhartha.veedaluru at gmail.com
Wed Jul 23 12:57:19 CEST 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20080723/8b3ae86c/attachment.htm>
More information about the python-win32
mailing list