Article View: borland.public.cppbuilder.nativeapi
Article #10913Re: SHGetSpecialFolderPath wired problem..please help
From: Ed Mulroy [TeamB]
Date: Sun, 21 Mar 2004 16:10
Date: Sun, 21 Mar 2004 16:10
41 lines
1986 bytes
1986 bytes
I don't know why the code you showed is doing that but I do have a
piece of code that seems to clear IE's history. It is small so is
easy to try.
#include <windows.h>
#include <UrlHist.h>
#include <shlguid.h>
HRESULT ClearHistory()
{
HRESULT result;
IUrlHistoryStg2 *UrlHistoryStage2_ptr = NULL;
SetLastError(0);
CoInitializeEx(NULL, COINIT_APARTMENTTHREADED);
result = CoCreateInstance(
CLSID_CUrlHistory,
NULL,
CLSCTX_INPROC,
IID_IUrlHistoryStg2,
reinterpret_cast<void**>(&UrlHistoryStage2_ptr));
if (SUCCEEDED(result))
{
result = UrlHistoryStage2_ptr->ClearHistory();
UrlHistoryStage2_ptr->Release();
}
CoUninitialize();
return result;
}
. Ed
> Martin C wrote in message
> news:405d9a1b@newsgroups.borland.com...
>
> I am trying to use SHGetSpecialFolderPath API function to
> get my Internet Explorer History folder location and erase
> all its contents ...
Technical Details
Message-ID:
<405dbe71$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<405d9a1b@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,2997fc081f04d0de X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-03-21 08:39:33 PST From: "Ed Mulroy [TeamB]" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi References: <405d9a1b@newsgroups.borland.com> Subject: Re: SHGetSpecialFolderPath wired problem..please help Date: Sun, 21 Mar 2004 11:10:21 -0500 Lines: 43 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.74.175.102 Message-ID: <405dbe71$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1079885425 24.74.175.102 (21 Mar 2004 08:10:25 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail