Click here to Skip to main content
15,884,425 members
Articles / Programming Languages / C++

A Cleanup API for Windows

Rate me:
Please Sign up or sign in to vote.
4.83/5 (23 votes)
24 Aug 2006CPOL18 min read 228.8K   3.7K   84  
Provides a general cleanup API for Windows, ported into Win32 and COM dynamic-link libraries.
// Cleanup_COM.idl : IDL source for Cleanup_COM
//

// This file will be processed by the MIDL tool to
// produce the type library (Cleanup_COM.tlb) and marshalling code.

import "oaidl.idl";
import "ocidl.idl";

[
	object,
	uuid(0BB05174-458D-4526-B7B3-1F8B2C120B17),
	dual,
	nonextensible,
	helpstring("ICleanupAPI Interface"),
	pointer_default(unique)
]
interface ICleanupAPI : IDispatch{
	[id(1), helpstring("method Delete_IECache")] HRESULT Delete_IECache([in] BOOL bDeleteCache, [in] BOOL bDeleteCacheIndex);
	[id(2), helpstring("method Delete_IECookies")] HRESULT Delete_IECookies([in] BOOL bDeleteCookies, [in] BOOL bDeleteCookiesIndex);
	[id(3), helpstring("method Delete_IEHistory")] HRESULT Delete_IEHistory([in] BOOL bDeleteHistory, [in] BOOL bDeleteHistoryIndex);
	[id(4), helpstring("method Delete_IEAddressBarHistory")] HRESULT Delete_IEAddressBarHistory(void);
	[id(5), helpstring("method Delete_DesktopRecentDocsHistory")] HRESULT Delete_DesktopRecentDocsHistory(void);
	[id(6), helpstring("method Delete_DesktopRunHistory")] HRESULT Delete_DesktopRunHistory(void);
	[id(7), helpstring("method Delete_DesktopRecycleBinContents")] HRESULT Delete_DesktopRecycleBinContents(void);
};
[
	uuid(EBC31763-11E6-48D4-9D4B-B8BAF4034EC5),
	version(1.0),
	helpstring("Cleanup_COM 1.0 Type Library")
]
library Cleanup_COMLib
{
	importlib("stdole2.tlb");
	[
		uuid(F5867A48-BCEE-4AED-804F-93B90C2478F2),
		helpstring("CleanupAPI Class")
	]
	coclass CleanupAPI
	{
		[default] interface ICleanupAPI;
	};
};

By viewing downloads associated with this article you agree to the Terms of Service 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions