📄 iptvcomm.idl
字号:
// IptvComm.idl : ActiveX 控件项目的类型库源。
// 此文件将由 MIDL 编译器工具处理以
//产生类型库(IptvComm.tlb),该类型库将成为
// IptvComm.ocx 中的资源。
#include <olectl.h>
#include <idispids.h>
[ uuid(F316C68C-1B99-4BAC-9C52-F81E6FC0639A), version(1.0),
helpfile("IptvComm.hlp"),
helpstring("IptvComm ActiveX 控件模块"),
control ]
library IptvCommLib
{
importlib(STDOLE_TLB);
// CIptvCommCtrl 的主调度接口
[ uuid(383D0E63-B14F-4A8A-9007-5CFE3FEEE4A1),
helpstring("IptvComm Control 的调度接口")]
dispinterface _DIptvComm
{
properties:
methods:
[id(1), helpstring("方法InitIptvDevice")] void InitIptvDevice(SHORT DeviceType);
[id(2), helpstring("方法GetIptvMcid")] BSTR GetIptvMcid(SHORT DeviceType);
[id(4), helpstring("方法ExitIptvDevice")] void ExitIptvDevice(SHORT DeviceType);
[id(5), helpstring("方法WriteIptvDevice")] LONG WriteIptvDevice(SHORT DeviceType, BSTR mcid, BSTR uid, BSTR pin, BSTR dns1, BSTR dns2, BSTR domain, BSTR address, BSTR subnet, BSTR gateway, SHORT serviceType);
};
// CIptvCommCtrl 的事件调度接口
[ uuid(AF77B540-6543-484D-B994-4600113B7798),
helpstring("IptvComm Control 的事件接口") ]
dispinterface _DIptvCommEvents
{
properties:
// 事件接口没有任何属性
methods:
};
// CIptvCommCtrl 的类信息
[ uuid(1428DB5B-0C60-4885-8CED-69117D303893),
helpstring("IptvComm Control"), control ]
coclass IptvComm
{
[default] dispinterface _DIptvComm;
[default, source] dispinterface _DIptvCommEvents;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -