+ Reply to Thread
Results 1 to 2 of 2

Thread: Delete IE (Internet Explorer) histrory in MFC application.

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    38

    Delete IE (Internet Explorer) histrory in MFC application.

    I want to write an function which can delete Internet Explorer History. Anybody knows how to do this in MFC?

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    43
    Code:
    void ClearInternetExplorerHistory()
    {
    	CComPtr<IUrlHistoryStg2> pUrlHistory = NULL;
        HRESULT hResult = CoCreateInstance(CLSID_CUrlHistory, NULL, CLSCTX_INPROC, IID_IUrlHistoryStg2, (LPVOID *) &pUrlHistory) ;
        if (SUCCEEDED(hResult))
        {
            hResult = pUrlHistory->ClearHistory() ;
        }
    }
    You can use above procedure.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts