cleanup_api_code.zip
Cleanup_Client_COM
Cleanup_COM.tlb
Release
Cleanup_Client_COM.exe
res
Cleanup_Client.ico
Cleanup_Client.manifest
Cleanup_Client_CS
App.ico
bin
Release
Cleanup_Client_CS.exe
Interop.Cleanup_COMLib.dll
Cleanup_Client_C3.csproj.user
Cleanup_Client_CS.csproj.user
Cleanup_Client_MFC
Cleanup_Win32.lib
Release
Cleanup.dll
Cleanup_Client_MFC.exe
res
Cleanup_Client.ico
Cleanup_Client.manifest
Cleanup_DLL_COM
Cleanup_COM.def
Cleanup_COM.rgs
Cleanup_COMps.def
CleanupAPI.rgs
Release
Cleanup.dll
Cleanup_COM.tlb
Cleanup_DLL_Win32
Release
Cleanup.dll
Cleanup_Win32.lib
|
// CleanupAPI.h : Declaration of the CCleanupAPI
#pragma once
#include "resource.h" // main symbols
#include "Cleanup_COM.h"
// CCleanupAPI
class ATL_NO_VTABLE CCleanupAPI :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CCleanupAPI, &CLSID_CleanupAPI>,
public IDispatchImpl<ICleanupAPI, &IID_ICleanupAPI, &LIBID_Cleanup_COMLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
{
public:
CCleanupAPI()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_CLEANUPAPI)
DECLARE_NOT_AGGREGATABLE(CCleanupAPI)
BEGIN_COM_MAP(CCleanupAPI)
COM_INTERFACE_ENTRY(ICleanupAPI)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
DECLARE_PROTECT_FINAL_CONSTRUCT()
HRESULT FinalConstruct()
{
return S_OK;
}
void FinalRelease()
{
}
public:
STDMETHOD(Delete_IECache)(BOOL bDeleteCache, BOOL bDeleteCacheIndex);
STDMETHOD(Delete_IECookies)(BOOL bDeleteCookies, BOOL bDeleteCookiesIndex);
STDMETHOD(Delete_IEHistory)(BOOL bDeleteHistory, BOOL bDeleteHistoryIndex);
STDMETHOD(Delete_IEAddressBarHistory)(void);
STDMETHOD(Delete_DesktopRecentDocsHistory)(void);
STDMETHOD(Delete_DesktopRunHistory)(void);
STDMETHOD(Delete_DesktopRecycleBinContents)(void);
};
OBJECT_ENTRY_AUTO(__uuidof(CleanupAPI), CCleanupAPI)
|
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.