Click here to Skip to main content
15,898,134 members
Articles / Programming Languages / C++

COM Interface Hooking and Its Application - Part I

Rate me:
Please Sign up or sign in to vote.
4.87/5 (51 votes)
19 Oct 200318 min read 680.1K   8.7K   209  
Interaction with MSN Messenger 6.0
// plus.idl : IDL source for plus.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(17137C98-D54C-4C76-ADF6-7491D037F086),
	
		helpstring("ISum Interface"),
		pointer_default(unique)
	]
	interface ISum : IUnknown
	{
		[helpstring("method method1")] HRESULT method1();
		[helpstring("method method2")] HRESULT method2();
		[helpstring("method woo")] HRESULT woo();
	};

[
	uuid(C08CD14F-7E94-4392-983A-53DCEA2CF22B),
	version(1.0),
	helpstring("plus 1.0 Type Library")
]
library PLUSLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(C910B122-A6E9-498B-A662-1EA7D26AF4E2),
		helpstring("Sum Class")
	]
	coclass Sum
	{
		[default] interface ISum;
	};
};

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Other
United States United States
fdefewtr534554yutki8op09;[pio';l.n,kbnmcvbxcvzxaqW876876UIYIUJUGHJGFHYFGHRDTR4564QWEDASASFDXCBVCBNGHNMJHMJN,NJKL;O[P-0=-]'[P';L/L,M.NM,BNMCGNGFXDGDFGTYU76TRYW34TR5AWERFASDVGfdsxbvfbvnvnm,jkl.k

Comments and Discussions