[Python-Dev] Re: Console vs. GUI applications
Garth
garth at garthy.com
Thu Sep 9 13:20:39 CEST 2004
use depends.exe to open cmd.exe
It delay loads shell32.dll and uses the functions ShellExecuteExW and
SHChangeNotify so it may use them.
Garth
Michael Walter wrote:
>Ah, I see.
>
>Thanks,
>Michael
>
>On Thu, 9 Sep 2004 11:49:57 +0200, Fredrik Lundh <fredrik at pythonware.com> wrote:
>
>
>>Michael Walter wrote:
>>
>>
>>
>>>I guessed CMD.EXE would run ShellExecute(), to which you can pass a
>>>filename such as "foo.py". Didn't verify this tho :)
>>>
>>>
>>>dumpbin /imports \windows\system32\cmd.exe | grep Shell
>>>
>>>
>>>dumpbin /imports \windows\system32\cmd.exe | grep Create
>>>
>>>
>> 7C81E968 4A CreateDirectoryW
>> 7C802332 66 CreateProcessW
>> 7C810976 52 CreateFileW
>>
>>(I doubt ShellExecute gives cmd.exe the control it needs. besides, ShellExecute
>>is part of the shell layer, not the core Windows API. and the shell layer depends
>>on everyone and his brother; I doubt they want the command line interface to
>>depend on the GDI layer, RPC services, etc.)
>>
>></F>
>>
>>
>>
>>
>>_______________________________________________
>>Python-Dev mailing list
>>Python-Dev at python.org
>>http://mail.python.org/mailman/listinfo/python-dev
>>Unsubscribe: http://mail.python.org/mailman/options/python-dev/michael.walter%40gmail.com
>>
>>
>>
>_______________________________________________
>Python-Dev mailing list
>Python-Dev at python.org
>http://mail.python.org/mailman/listinfo/python-dev
>Unsubscribe: http://mail.python.org/mailman/options/python-dev/garth%40garthy.com
>
>
>
More information about the Python-Dev
mailing list