BOOL CALLBACK CloseIEProc(HWND hWnd, LPARAM lParam) { enum { SZ_SIZE = 1024 }; TCHAR sz[SZ_SIZE + 1]; GetClassName(hWnd, sz, SZ_SIZE); CString strClassName(sz); if (strClassName.Compare(_T("IEFrame")) == 0 ) PostMessage(hWnd, WM_CLOSE, 0, 0); return TRUE; } EnumWindows(CloseIEProc, 0);
Retrieved from http://hyacinth.byus.net/moniwiki/wiki.php/C++/(Windows)IE 모두 종료
last modified 2014-07-28 16:33:33