www.pudn.com > PosActiveX.rar > PosActiveX.idl
// PosActiveX.idl : IDL source for PosActiveX.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (PosActiveX.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
#include "olectl.h"
[
object,
uuid(F17752BC-480A-47E3-BDED-93BABEE4BDCF),
dual,
helpstring("IPosCtrl Interface"),
pointer_default(unique)
]
interface IPosCtrl : IDispatch
{
[id(1), helpstring("method Init")] HRESULT Init(short nComNo);
[id(4), helpstring("method ModifyPosDT")] HRESULT ModifyPosDT(BSTR bstrDT);
[id(5), helpstring("method EmptyPos")] HRESULT EmptyPos();
[id(2), helpstring("method Quit")] HRESULT Quit();
[propget, id(3), helpstring("property ComNo")] HRESULT ComNo([out, retval] short *pVal);
[propput, id(3), helpstring("property ComNo")] HRESULT ComNo([in] short newVal);
};
[
uuid(D01E8729-EF12-4F09-ACE2-3B3D26CCD29A),
version(1.0),
helpstring("PosActiveX 1.0 Type Library")
]
library POSACTIVEXLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(6FDCFE84-BDAD-401B-B2B1-09E35D913174),
helpstring("_IPosCtrlEvents Interface")
]
dispinterface _IPosCtrlEvents
{
properties:
methods:
};
[
uuid(36FBEDEC-C279-483A-8601-C81339E05F4F),
helpstring("PosCtrl Class")
]
coclass PosCtrl
{
[default] interface IPosCtrl;
[default, source] dispinterface _IPosCtrlEvents;
};
};