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

📄 sgip.idl

📁 手机开发环境BREW实例
💻 IDL
字号:
// Sgip.idl : IDL source for Sgip.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
typedef enum tagInfoType
	{
		WaitSendNumber,
		SubmitNumber,
		SubmitResponseSuccessedNumber, 
		SubmitResponseFailedNumber, 
		CurrentError, 
		CurrentProtocolError, 
		LastError, 
		LastProtocolError, 
		LastTimeError, 
		LastTimeProtocolError, 
		ThreadState, 
		SendTime, 
		ResponseTime
	}eInfoType;
	typedef enum tagParaType
	{
		SendMaxNumberPerPackage,
		Timeout4Connect,
		Timeout4Recv,
		PauseTime4Recv,
		Timeout4Accept,
		PauseTime4Accept,
		PauseTime4Terminate,
		SendIntervalTime,
		Timeout4Response
	}eParaType;

	typedef enum tagEMsgType
	{
		EMsgType_CancelSubscibe,	//取消订阅
		EMsgType_RequestSubscibe,	//订阅请求
		EMsgType_Order,				//点播
		EMsgType_Subscibe,			//订阅
		EMsgType_Alternation,		//交互操作
		EMsgType_Query				//查询
	}EMsgType;

	typedef enum tagECommandCode
	{
		ECommandCode_SingleSelection,		//单项选择
		ECommandCode_YesNoSelection,		//确认选择
		ECommandCode_MultipleSelection,		//多项选择
		ECommandCode_Input,					//非选择性数据输入
		ECommandCode_TextOnScreen,			//屏幕信息输出
		ECommandCode_MultiInput,			//多项非选择性数据输入
		ECommandCode_Exit					//返回主菜单
	}ECommandCode;

	typedef enum tagEMustInput
	{
		EMustInput_Any,		//对用户输入不要求
		EMustInput_Full,	//必须输入字符
		EMustInput_Other	//必须至少输入此处要求的字符数,如6,表示6个字符
	}EMustInput;

	typedef enum tagEInputType
	{
		EInputType_Number,	//数字
		EInputType_Char		//字符
	}EInputType;
	[
		object,
		uuid(D7EE3096-F6C8-42D5-9EF5-9D3E6B9F741F),
		dual,
		helpstring("IPSgip Interface"),
		pointer_default(unique)
	]
	interface IPSgip : IDispatch
	{
		[id(1), helpstring("method Init")] HRESULT Init([in] long lPara, [in, optional] BSTR bStrSaveFile, [in, optional] long lReListenInterTimeStepIs100MS, [in, optional] BSTR bstrDebugPath, [out, retval] long *plError);
		[id(2), helpstring("method Bind")] HRESULT Bind([in] BSTR bStrIP, [in, optional] short iPort, [in] BSTR bStrLoginName, [in] BSTR bStrPassword, [out, retval] long *plError);
		[id(3), helpstring("method Unbind")] HRESULT Unbind([out, retval] long *plError);
		[id(4), helpstring("method Submit")] HRESULT Submit([in, optional] BSTR bStrMobileCode, [in, optional] VARIANT *pMessageContent, [out, retval] long *plError);
		[propget, id(5), helpstring("property MobileID")] HRESULT MobileID([out, retval] BSTR *pVal);
		[propput, id(5), helpstring("property MobileID")] HRESULT MobileID([in] BSTR newVal);
		[propget, id(6), helpstring("property MessageContent")] HRESULT MessageContent([out, retval] VARIANT *pVal);
		[propput, id(6), helpstring("property MessageContent")] HRESULT MessageContent([in] VARIANT newVal);
		[propget, id(7), helpstring("property FeeMobileID")] HRESULT FeeMobileID([out, retval] BSTR *pVal);
		[propput, id(7), helpstring("property FeeMobileID")] HRESULT FeeMobileID([in] BSTR newVal);
		[propget, id(8), helpstring("property SPNumber")] HRESULT SPNumber([out, retval] BSTR *pVal);
		[propput, id(8), helpstring("property SPNumber")] HRESULT SPNumber([in] BSTR newVal);
		[propget, id(9), helpstring("property SPID")] HRESULT SPID([out, retval] BSTR *pVal);
		[propput, id(9), helpstring("property SPID")] HRESULT SPID([in] BSTR newVal);
		[propget, id(10), helpstring("property SeviceType")] HRESULT SeviceType([out, retval] BSTR *pVal);
		[propput, id(10), helpstring("property SeviceType")] HRESULT SeviceType([in] BSTR newVal);
		[propget, id(11), helpstring("property FeeType")] HRESULT FeeType([out, retval] BYTE *pVal);
		[propput, id(11), helpstring("property FeeType")] HRESULT FeeType([in] BYTE newVal);
		[propget, id(12), helpstring("property FeeValue")] HRESULT FeeValue([out, retval] long *pVal);
		[propput, id(12), helpstring("property FeeValue")] HRESULT FeeValue([in] long newVal);
		[propget, id(13), helpstring("property GivenValue")] HRESULT GivenValue([out, retval] long *pVal);
		[propput, id(13), helpstring("property GivenValue")] HRESULT GivenValue([in] long newVal);
		[propget, id(14), helpstring("property AgentFlag")] HRESULT AgentFlag([out, retval] BYTE *pVal);
		[propput, id(14), helpstring("property AgentFlag")] HRESULT AgentFlag([in] BYTE newVal);
		[propget, id(15), helpstring("property MoreLateToMTFlag")] HRESULT MoreLateToMTFlag([out, retval] BYTE *pVal);
		[propput, id(15), helpstring("property MoreLateToMTFlag")] HRESULT MoreLateToMTFlag([in] BYTE newVal);
		[propget, id(16), helpstring("property Priority")] HRESULT Priority([out, retval] BYTE *pVal);
		[propput, id(16), helpstring("property Priority")] HRESULT Priority([in] BYTE newVal);
		[propget, id(17), helpstring("property ScheduleTime")] HRESULT ScheduleTime([out, retval] BSTR *pVal);
		[propput, id(17), helpstring("property ScheduleTime")] HRESULT ScheduleTime([in] BSTR newVal);
		[propget, id(18), helpstring("property ExpireTime")] HRESULT ExpireTime([out, retval] BSTR *pVal);
		[propput, id(18), helpstring("property ExpireTime")] HRESULT ExpireTime([in] BSTR newVal);
		[propget, id(19), helpstring("property ReportFlag")] HRESULT RegisteredDeliveryFlag([out, retval] BYTE *pVal);
		[propput, id(19), helpstring("property ReportFlag")] HRESULT RegisteredDeliveryFlag([in] BYTE newVal);
		[propget, id(20), helpstring("property TPpid")] HRESULT TPpid([out, retval] BYTE *pVal);
		[propput, id(20), helpstring("property TPpid")] HRESULT TPpid([in] BYTE newVal);
		[propget, id(21), helpstring("property TPudhi")] HRESULT TPudhi([out, retval] BYTE *pVal);
		[propput, id(21), helpstring("property TPudhi")] HRESULT TPudhi([in] BYTE newVal);
		[propget, id(22), helpstring("property MessageCoding")] HRESULT MessageCoding([out, retval] BYTE *pVal);
		[propput, id(22), helpstring("property MessageCoding")] HRESULT MessageCoding([in] BYTE newVal);
		[propget, id(23), helpstring("property MessageType")] HRESULT MessageType([out, retval] BYTE *pVal);
		[propput, id(23), helpstring("property MessageType")] HRESULT MessageType([in] BYTE newVal);
		[propget, id(24), helpstring("property Information")] HRESULT Info([in] eInfoType eGetInfoType, [out, retval] long *pVal);
		[propget, id(25), helpstring("property Para")] HRESULT Para([in] eParaType eInParaType, [out, retval] long *pVal);
		[propput, id(25), helpstring("property Para")] HRESULT Para([in] eParaType eInParaType, [in] long newVal);
		[propget, id(26), helpstring("property LocalIP")] HRESULT LocalIP([in, out, optional] VARIANT *pPara, [out, retval] BSTR *pVal);
		[propput, id(26), helpstring("property LocalIP")] HRESULT LocalIP([in, out, optional] VARIANT *pPara, [in] BSTR newVal);
		[propget, id(27), helpstring("property Version")] HRESULT Version([out, retval] BYTE *pVal);
		[propput, id(27), helpstring("property Version")] HRESULT Version([in] BYTE newVal);
		[propget, id(28), helpstring("property PortListen")] HRESULT PortListen([out, retval] short *pVal);
		[propput, id(28), helpstring("property PortListen")] HRESULT PortListen([in] short newVal);
		[propget, id(29), helpstring("property Reserve")] HRESULT Reserve([out, retval] BSTR *pVal);
		[propput, id(29), helpstring("property Reserve")] HRESULT Reserve([in] BSTR newVal);
		[propget, id(30), helpstring("property MobileIDFix")] HRESULT MobileIDFix([out, retval] BSTR *pVal);
		[propput, id(30), helpstring("property MobileIDFix")] HRESULT MobileIDFix([in] BSTR newVal);
		[propget, id(31), helpstring("property ErrorDescrption")] HRESULT ErrorDescrption([in]long lErrorCode, [out, retval] BSTR *pVal);
	};

[
	uuid(AB4AA2B6-AA40-41AA-90C2-E2FC4A98BA80),
	version(1.0),
	helpstring("Sgip 1.0 Type Library")
]
library SGIPLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(EAE07B32-3D65-4BBC-9CD2-85E901A3F55E),
		helpstring("_IPSgipEvents Interface")
	]
	dispinterface _IPSgipEvents
	{
		properties:
		methods:
		[id(1), helpstring("method Deliver")] HRESULT Deliver(BSTR bStrSPID, BSTR bStrMobileID, long lTP_pid, long lTP_udhi, BYTE bMessageCoding, long lMessageLength, VARIANT MessageContent, BSTR bstrReserved);
		[id(2), helpstring("method Report")] HRESULT Report(BSTR bStrMobileID, long lState, long lErrorCode, long lTime);
		[id(3), helpstring("method UserReport")] HRESULT UserReport(BSTR bStrMobileID, long lCondition);
	};

	[
		uuid(141B9D65-B04A-434F-AC39-C73D8557AE47),
		helpstring("PSgip Class")
	]
	coclass PSgip
	{
		[default] interface IPSgip;
		[default, source] dispinterface _IPSgipEvents;
	};
};

⌨️ 快捷键说明

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