谁熟悉ShellExecutea,iswindowa()这两个函数,能讲讲怎样使用吗?
我使用ShellExecutea执行一个*.bat文件,打开一个应用程序窗口(c:\winnt\system32\cmd.exe),
ll_return=ShellExecutea(handle(parent), "open", "xxx.bat", "", ls_path, 0)
ll_handle = FindWindowA(null,"c:\winnt\system32\cmd.exe")
再用
do while iswindowa(ll_handle)
loop
来判断窗口是否关闭,但是我发现:c:\winnt\system32\cmd.exe程序执行完了,
而且退出了dos窗口, 但是
iswindow(ll_handle) 仍然为true 陷入了死循环。
我该怎么办?????????????