⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kdcard.odl

📁 磁卡读写器编程
💻 ODL
字号:
// KDCARD.odl : type library source for ActiveX Control project.

// This file will be processed by the Make Type Library (mktyplib) tool to
// produce the type library (KDCARD.tlb) that will become a resource in
// KDCARD.ocx.

#include <olectl.h>
#include <idispids.h>

[ uuid(EBFE4DC8-86CD-4690-808C-74E616489DAD), version(1.0),
  helpfile("KDCARD.hlp"),
  helpstring("KDCARD ActiveX Control module"),
  control ]
library KDCARDLib
{
	importlib(STDOLE_TLB);
	importlib(STDTYPE_TLB);

	//  Primary dispatch interface for CKDCARDCtrl

	[ uuid(52BB5A19-AB7E-4B49-855B-7A9B460A89EB),
	  helpstring("Dispatch interface for KDCARD Control"), hidden ]
	dispinterface _DKDCARD
	{
		properties:
			// NOTE - ClassWizard will maintain property information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_PROP(CKDCARDCtrl)
			[id(1)] short DeviceStatus;
			[id(2)] short ExtPortKD6006;
			[id(3)] short ExtPortKDE;
			[id(4)] short SerialPortKD6006;
			[id(5)] short SerialPortKDE;
			[id(6)] BSTR Track2;
			[id(7)] BSTR Track3;
			//}}AFX_ODL_PROP

		methods:
			// NOTE - ClassWizard will maintain method information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_METHOD(CKDCARDCtrl)
			[id(8)] short CancelCheckCard();
			[id(9)] short CheckCardAtGate(short gTimeOut);
			[id(10)] short CloseDevice();
			[id(11)] short EjectCardKDE();
			[id(12)] short GetPortFromIni();
			[id(13)] short SendICC(BSTR pchSendBuf, BSTR pchRcvBuf, BSTR pchICSW);
			[id(14)] short TakeBackCard();
			[id(15)] short WaittingCard(short Mode);
			[id(16)] short OpenKD6006Com();
			[id(17)] short OpenKDECom();
			//}}AFX_ODL_METHOD
	};

	//  Event dispatch interface for CKDCARDCtrl

	[ uuid(9A59EB4A-8715-4BBC-B6DB-04D2AD713C10),
	  helpstring("Event interface for KDCARD Control") ]
	dispinterface _DKDCARDEvents
	{
		properties:
			//  Event interface has no properties

		methods:
			// NOTE - ClassWizard will maintain event information here.
			//    Use extreme caution when editing this section.
			//{{AFX_ODL_EVENT(CKDCARDCtrl)
			[id(1)] void CardDataComming(short DeviceStatus);
			[id(2)] void TakeCardComming();
			//}}AFX_ODL_EVENT
	};

	//  Class information for CKDCARDCtrl

	[ uuid(C80B31A6-34DA-11D6-8B8B-00105CB2114E),
	  helpstring("KDCARD Control"), control ]
	coclass KDCARD
	{
		[default] dispinterface _DKDCARD;
		[default, source] dispinterface _DKDCARDEvents;
	};


	//{{AFX_APPEND_ODL}}
	//}}AFX_APPEND_ODL}}
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -