Click here to Skip to main content
15,886,199 members
Articles / Web Development / HTML

Runtime Trace

Rate me:
Please Sign up or sign in to vote.
3.60/5 (5 votes)
30 Mar 20033 min read 57.5K   1.5K   22  
Display trace messages at runtime from several running applications on different machines
// tracing.idl : IDL source for tracing.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(67C1829D-4A8C-4FC5-9615-758C36599AA5),
		dual,
		helpstring("IRuntimeTrace Interface"),
		pointer_default(unique)
	]
	interface IRuntimeTrace : IDispatch
	{
		[id(1), helpstring("Drop the actual parameters' list")] 
		HRESULT Drop();
		[propget, id(2), helpstring("property ErrorReason")] HRESULT ErrorReason([out, retval] BSTR *pVal);
		[id(3), helpstring("method Add")] HRESULT Add([in] VARIANT Val, [out, retval] VARIANT_BOOL *pRetval);
		[id(4), helpstring("method SetTarget")] HRESULT SetTarget([in] BSTR Name, [in, optional, defaultvalue("127.0.0.1")] BSTR IP, [in, optional, defaultvalue(7777)] short Port, [out, retval] VARIANT_BOOL *pRetval);
		[id(5), helpstring("method Trace")] HRESULT Trace([in] BSTR Format, [out, retval] VARIANT_BOOL *pRetval);
		[id(6), helpstring("method Trace10")] HRESULT Trace10([in] BSTR Format, [in, optional] VARIANT v1, [in, optional] VARIANT v2, [in, optional] VARIANT v3, [in, optional] VARIANT v4, [in, optional] VARIANT v5, [in, optional] VARIANT v6, [in, optional] VARIANT v7, [in, optional] VARIANT v8, [in, optional] VARIANT v9, [in, optional] VARIANT v10);
	};

[
	uuid(6E8DA474-F03C-4732-8D71-4A9B43373732),
	version(1.0),
	helpstring("tracing 1.0 Type Library")
]
library TRACINGLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(1382C259-2E54-4622-B52F-828DE342A9FE),
		helpstring("RuntimeTrace Class")
	]
	coclass RuntimeTrace
	{
		[default] interface IRuntimeTrace;
	};
};

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.


Written By
Software Developer (Senior)
Europe Europe
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions