Python20 win32api RegSetValueEx in Win2k
Jens Hünermund
huene at web.de
Thu May 3 06:46:11 EDT 2001
I'm a newbie and tried to add some values to the Windows2000 registry database
using the RegSetValueEx command:
subkey=win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE,'Software')
subkey=win32api.RegOpenKeyEx(subkey, 'Dummy')
self.registry_key=subkey
win32api.RegSetValueEx(self.registry_key, "7000", 0, win32con.REG_SZ,
"742890210")
With Win9x there was no problem, whereas with W2k and NT I always get the error:
pywintypes.api_error: (5, 'RegSetValueEx', 'Zugriff verweigert') (the last is
'access denied' in german).
Using win32api.RegSetValue(self.registry_eaw_key, "7000", win32con.REG_SZ,
"742890210") I succeeded, but the result was a new subkey.
I think it is something dealing with security. Is there somebody who can help
me?
--
_____________________________________________________________
NewsGroups Suchen, lesen, schreiben mit http://netnews.web.de
More information about the Python-list
mailing list