You can generally get away with just using "ShellExecute" - the trick is to use "runas" as the verb. But ShellExecuteEx is in win32com.shell.shell if you really need its extra capabilities.
Mark > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:python-win32- > [EMAIL PROTECTED] On Behalf Of le dahut > Sent: Thursday, 8 May 2008 1:03 AM > To: Python-Win32 List > Subject: [python-win32] ShellExecuteEx > > Hello, > > Still with Vista, when using CreateProcess(...'regedit'...) to > save/restore some registry keys I get and error 740 "The requested > operation requires elevation". > According to msdn ShellExecuteEx should be used instead of > CreateProcess. > > Where Can I find ShellExecuteEx ? > Are there other methods to save/load standard .reg files that "regedit > /E or /S" ? > > _______________________________________________ > python-win32 mailing list > [email protected] > http://mail.python.org/mailman/listinfo/python-win32 _______________________________________________ python-win32 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-win32
