//激活并打开IE
void lounchIE()
{
HWND h=FindWindowEx(NULL, NULL, NULL, “Microsoft Internet Explorer”);
ShellExecute(h, “open”, “http://www.pcvc.net”, NULL,NULL,SW_SHOWNORMAL);
}
//关闭IE及其它应用程序
void CloseIE()
{
int app = BSM_APPLICATIONS;
unsigned long bsm_app = (unsigned long)app;
BroadcastSystemMessage(BSF_POSTMESSAGE, &bsm_app, WM_CLOSE, NULL, NULL);
}
>> 本文固定链接: http://www.vcgood.com/archives/1012