반응형 개발469 [개발/MFC] 키보드 후킹 [개발/MFC] 키보드 후킹 Hooking 중에서 키보드 후킹에 대해서 구현 방법을 알아보자. ///////////////////////////////////////////////////////////////// // // Hooking 전역 키보드 후킹 // ///////////////////////////////////////////////////////////////// // MFC 다이얼로그 전역키보드 메세지를 가로챈다. HWND g_hWnd = NULL; HHOOK g_hHook = NULL; LRESULT CALLBACK KeyHookProc(int nCode, WPARAM wParam, LPARAM lParam); BOOL SBLiveDlg::SetHookProc() { if (g_hHook.. 2011. 7. 28. [개발/MFC] IE에서 새 탭 열기 [개발/MFC] IE에서 새 탭 열기 internet explorer 에서 새 창을 여는 대신에 새 탭으로 새 페이지를 접속해 보자. if (m_spWebBrowser != NULL) { CComBSTR bstrURL( "c:\\temp\\blank.htm" ); // Navigate to the report VARIANT noArg; noArg.vt = VT_EMPTY; VARIANT flags; flags.vt = VT_I4; flags.lVal = navOpenInNewTab; m_spWebBrowser->Navigate(bstrURL, &flags, &noArg, &noArg, &noArg); } else { MessageBox(NULL, _T("No Web browser pointer"), _T.. 2011. 7. 27. [개발/MFC] 사용자가 다녀간 웹 페이지의 히스토리 얻기 [개발/MFC] 사용자가 다녀간 웹 페이지의 히스토리 얻기 사용자가 다녀간 웹 페이지의 히스토리 얻기 ITravelLogStg 인터페이스를 이용해 해당 웹브라우저 컨트롤의 히스트리를 얻을 수 있습니다. HRESULT hr = S_OK; IServiceProvider* pISP = NULL; ITravelLogStg* pTLStg = NULL; ITravelLogEntry* pTLEntry = NULL; IEnumTravelLogEntry* pTLEnum = NULL; if (FAILED(pWB->QueryInterface(IID_IServiceProvider, (void**) &pISP)) || pISP == NULL) goto Cleanup; if (FAILED(pISP->QueryService(SID.. 2011. 7. 27. [개발/MFC] IE 새창 띄우기 [개발/MFC] IE 새창 띄우기 인터넷 익스플로러에서 새 창 띄우는 방법을 알아보자. if(m_spPopUpWeb == NULL) m_spPopUpWeb.CoCreateInstance(CLSID_InternetExplorer); if(m_spPopUpWeb) { USES_CONVERSION; VARIANT vtEmpty; VariantInit(&vtEmpty); CComBSTR bstrURL = lpszURL; m_spPopUpWeb->Navigate(bstrURL, &vtEmpty, &vtEmpty, &vtEmpty, &vtEmpty); //m_spPopUpWeb->put_MenuBar(VARIANT_FALSE); //m_spPopUpWeb->put_ToolBar(VARIANT_FALSE); //m_.. 2011. 7. 27. [개발/VC] Understanding and Working in Protected Mode Internet Explorer Understanding and Working in Protected Mode Internet Explorer Marc Silbey, Peter Brundrett Microsoft Corporation January 2006 Last Updated: February 2011 Applies to: Windows Internet Explorer 7 in Windows Vista and later Summary In Windows Vista, Internet Explorer 7 runs in Protected Mode, which helps protect users from attack by running the Internet Explorer process with greatly restricted priv.. 2011. 7. 25. [IT/VC] Installing a Search Provider and Setting the Default Installing a Search Provider and Setting the Default Windows Internet Explorer 8 extends a rich searching experience by offering users the option to install multiple search providers. As a user installs search providers, each provider has a chance to set itself as the default provider. Internet Explorer 8 has a new mandatory Search Provider Default user experience that keeps the user in control .. 2011. 7. 25. 이전 1 ··· 46 47 48 49 50 51 52 ··· 79 다음 반응형