[python-win32] ShellExecuteEx

Mark Hammond mhammond at skippinet.com.au
Thu May 8 03:15:27 CEST 2008


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: python-win32-bounces at python.org [mailto:python-win32-
> bounces at python.org] 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
> python-win32 at python.org
> http://mail.python.org/mailman/listinfo/python-win32



More information about the python-win32 mailing list