Hi

(Sorry for my very bad english)

I try to delete a record from Internet explorer' history in Visual c++,
and i found this sample code on the microsoft web site

USES_CONVERSION;
CoInitialize(NULL);

IUrlHistoryStg2* pUrlHistoryStg2 = NULL;
HRESULT hr = CoCreateInstance(CLSID_CUrlHistory,NULL, CLSCTX_INPROC,
IID_IUrlHistoryStg2,(void**)&pUrlHistoryStg2);

IEnumSTATURL* pEnumURL;
hr = pUrlHistoryStg2->EnumUrls(&pEnumURL);

STATURL suURL;
ULONG pceltFetched;
suURL.cbSize = sizeof(suURL);
hr = pEnumURL->Reset();

while((hr = pEnumURL->Next(1, &suURL, &pceltFetched)) == S_OK)
{
hr = pUrlHistoryStg2->DeleteUrl(suURL.pwcsUrl, 0);
printf("\"%s\" deleted.\n", W2T(suURL.pwcsUrl));
}

pEnumURL->Release();
pUrlHistoryStg2->Release();
CoUninitialize();


But when i execute this code the fonction pUrlHistoryStg2->DeleteUrl(...)
has no effect.

Please have you a solution ?