2025-04-27 07:49:33 -04:00

51 lines
1.4 KiB
Plaintext

// PgCnt.idl : IDL source for PgCnt.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (PgCnt.tlb) and marshalling code.
[
object,
uuid(ef88ca70-b840-11d0-8b40-00c0f00ae35a),
dual,
helpstring("IPgCntObj Interface"),
pointer_default(unique),
oleautomation
]
interface IPgCntObj : IDispatch
{
import "oaidl.idl";
//Custom Component Methods
[id(3), helpstring("The Hits method returns the number of times that a specified Web page has been opened.")]
HRESULT Hits([in,optional] VARIANT bstrURL, [out,retval] LONG* plNumHits);
[id(4), helpstring("The Reset method sets the hit count for a specified Web page to 0.")]
HRESULT Reset([in, optional] VARIANT bstrURL);
[id(5), helpstring("The PageHit method increments the hit count for the current Web page.")]
HRESULT PageHit([out,retval] LONG* plNumHits);
};
[
uuid(ef88ca71-b840-11d0-8b40-00c0f00ae35a),
version(1.0),
helpstring("MSWC Page Counter Object Library")
]
library PageCounter
{
importlib("stdole2.tlb");
[
uuid(ef88ca72-b840-11d0-8b40-00c0f00ae35a),
helpstring("PageCounter Class")
]
coclass PageCounter
{
[default] interface IPgCntObj;
};
};