Hi, after hours of searching, testing and hoping to code for vista never again ;) i tried to call an application with everything i found... sometimes py2exe couldn't load the needed modules. but every time the app stuck. it seems that ShellExecuteEx doesnt word with py2exe... maybe i'm wrong. i read about some 'magic' to load the necessary win32 modules... doesnt work...
so... how do i call an application in vista? thanks in advance ps: Non-Elevated Application Runs an Elevated Application. A non-elevated application may need to spawn an elevated application to perform a download, an install, register a COM server etc. The Shell API calls ShellExecute() and ShellExecuteEx() do this just fine. Often programmers launch applications using CreateProcess(), which is useful to wait on a process to terminate. Unfortunately CreateProcess() will fail under Vista when running an elevated application from a non-elevated application. You will need to use ShellExecute() or ShellExecuteEx() which BTW can also return a process ID, then use WaitForSingleObject(ExecInfo.hProcess, INFINITE). _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32