以下内容是CSDN社区关于请问如何在Delphi中声明Windows API函数 (比如ShellExecute这个函数,Delphi就没有集成进去)很急!!!相关内容,如果想了解更多关于Windows SDK/API社区其他内容,请访问CSDN社区。
但是这样打开的程序的父进程就是这个MFC程序了,例如用1.exe打开2.exe,那么2.exe的父进程就是1.exe而并不是explorer.exe,但我想令打开的2.exe的父进程是explorer.exe,不知有没有办法呢? 或者直接点说,我发现用一个程序打开另一个以相对路径调用文件的程序,这时 ...
I'm trying to get VB to launch a DOS based program and save the output to a text file.<P>Shell wouldn't even launch the program.<P>So I used ShellExecute, and my call ...
You don't, ShellExecute doesn't have the functionality you want. You could use ShellExecuteEx asking for the process handle return and polling until that process terminates if you wanted.
一些您可能无法访问的结果已被隐去。
显示无法访问的结果