发布于 2006-08-22 17:13:17
0楼
你用ProgramExecute函数打开的应用程序应该有退出功能的吧!
要不就只能用API函数SendMessage:
LRESULT SendMessage(
HWND hWnd, // handle of destination window
UINT Msg, // message to send
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
发送消息去关闭打开的应用程序进程。
雄关漫道真如铁,而今迈步从头越!