描述:
我有一个Acivex控件,他ole/object viewer 导出的IDL文件如下:
/////////////////////////////////////////////////////////////////
// Generated .IDL file (by the OLE/COM Object Viewer)
//
// typelib filename: actzt598.ocx
[
uuid(7521965E-9FC0-49CF-9766-4556A881E97A),
version(2.0),
helpstring("ActZt598 ActiveX Control module"),
helpfile("ActZt598.hlp"),
helpcontext(00000000)
]
library ACTZT598Lib
{
// TLib : // TLib : OLE Automation : {00020430-0000-0000-C000-000000000046}
importlib("stdole2.tlb");
// Forward declare all types defined in this typelib
dispinterface _DActZt598;
dispinterface _DActZt598Events;
[
uuid(A7C81D1C-042C-481A-9ECE-B8424082D03C),
helpstring("Dispatch interface for ActZt598 Control"),
hidden
]
dispinterface _DActZt598 {
properties:
[id(0x00000001)
]
BSTR PinValue;
[id(0x00000002)
]
short SerialPort;
[id(0x00000003)
]
short ExtPort;
methods:
[id(0x00000004)]
short EnableKeyPress();
[id(0x00000005)]
short DisableKeyPress();
[id(0x00000006)]
short DisablePinPress();
[id(0x00000007)]
short LoadMasterKey(
short MkeyNo,
BSTR MkeyAsc);
[id(0x00000008)]
short CloseZt598Com();
[id(0x00000009)]
short OpenZt598Com();
[id(0x0000000a)]
short LoadWorkKey(
short MkeyNo,
short WKeyNo,
BSTR WKeyAsc);
[id(0x0000000b)]
void GetPortFromIni();
[id(0x0000000c)]
short EnablePinPress(
short Mode,
short PinLen,
short MkeyNo,
short WKeyNo,
BSTR pCardNo,
short TimeOut);
[id(0x0000000d)]
short ResetDevice();
[id(0x0000000e)]
void AboutVersion();
[id(0x0000000f)]
short Des(
short MkeyNo,
short WKeyNo,
BSTR DataInput,
BSTR DataOutput);