Re[2]: 3 бакса за функцию очистки history
От: korzhik Россия  
Дата: 22.07.04 13:30
Оценка:
Здравствуйте, night, Вы писали:

N>
N>#include <shlguid.h> // Needed for CLSID_CUrlHistory
N>#include <urlhist.h> // Needed for IUrlHistoryStg2 and IID_IUrlHistoryStg2
N>IUrlHistoryStg2* pHistory;  // We need this interface for clearing the history.
N>        HRESULT hr;
N>        DWORD cRef;
N>        CoInitialize(NULL);
N>        // Load the correct Class and request IUrlHistoryStg2
N>        hr = CoCreateInstance(CLSID_CUrlHistory, NULL, 
N>               CLSCTX_INPROC_SERVER, IID_IUrlHistoryStg2, reinterpret_cast<void **>(&pHistory));
N>        if (SUCCEEDED(hr))
N>        {
N>         // Clear the IE History
N>         hr = pHistory->ClearHistory();
N>        }
N>        // Release our reference to the 
N>        cRef = pHistory->Release();
N>        CoUninitialize();
N>


Минимальные требования:
Internet Explorer 5.5
Minimum operating systems Millennium, Windows 2000

Если бы всё было так просто, то это и стоило бы 3 бакса.
Но на самом деле всё намного сложнее.
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.