Thanks Tim.
Sorry,i was wrong in using the operators
i modified the script and once again i ran it
import os, sys
from _winreg import *
KEY_WOW64_64KEY = 256
regHandle = OpenKey(HKEY_LOCAL_MACHINE,"SOFTWARE\Value
Systems\ValApp\Instance001",0,KEY_WOW64_64KEY|KEY_READ|KEY_WRITE)
print regHandle
val = QueryValue(regHandle,"sPhysicalNodeName")
print val
it gave the following window error.but the registry value is present.
<PyHKEY at 01F650B0 (00000080)>
Traceback (most recent call last):
File "C:\Precert\test.py", line 6, in <module>
val = QueryValue(regHandle,"sPhysicalNodeName")
WindowsError: [Error 2] The system cannot find the file specified
_______________________________________________
python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32