Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ac 程序中使用 ShellExecute() 在 Internet Explorer 中打开了一个 .doc 文件。当资源管理器中打开的文件关闭时,调用 ShellExecute() 的程序有什么办法得到通知?
不,现在有办法实现这一点。ShellExecute不提供等待它调用的程序执行的方法。
ShellExecute
实际上,甚至可能没有要执行的程序:想象一下open,在没有安装 Adobe Reader 或 Acrobat 或任何其他此类软件的系统上尝试使用 .PDF 文件。
open
您所得到的只是响应 shell 尝试在注册表中查找并执行与您传入的文件和动词相关联的操作的成功或失败。