110,571
社区成员
发帖
与我相关
我的任务
分享
internal const int WM_CLOSE = 0x0010; //关闭窗口
internal const int WM_QUIT = 0x0012; //退出线程消息循环
public static void CloseWindow(IntPtr hWnd)
{
PostMessage(hWnd, WM_CLOSE, 0, 0);
PostMessage(hWnd, WM_QUIT, 0, 0);
}
不过根据标题判断很不严密,即便那些网页标题都中规中矩都遵循seo那样的规则,也难免误杀