📄 getsn.idl
字号:
// GetSN.idl : IDL source for GetSN.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (GetSN.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(2CC48E72-79A3-4CA4-A42C-F2DAFF127E67),
dual,
helpstring("IGetSerNum_Name Interface"),
pointer_default(unique)
]
interface IGetSerNum_Name : IDispatch
{
[id(1), helpstring("method GetSNMethod")] HRESULT GetSNMethod([in]BSTR certctrl,[out,retval]BSTR* rev);
};
[
object,
uuid(898E6FCA-212D-4728-82E9-0E4F6C6FBDE9),
dual,
helpstring("IGetISN Interface"),
pointer_default(unique)
]
interface IGetISN : IDispatch
{
[id(1), helpstring("method GetISNMethod")] HRESULT GetISNMethod([in]BSTR certctrl,[out,retval]BSTR* rev);
[propget, id(2), helpstring("property SerNum")] HRESULT SerNum([out, retval] BSTR *pVal);
};
[
uuid(C53DDC74-4A08-4C70-B7CF-B77DEB2656AE),
version(1.0),
helpstring("GetSN 1.0 Type Library")
]
library GETSNLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(14A3C7C3-05B6-44C5-8122-FA163BEFD8E8),
helpstring("GetSerNum_Name Class")
]
coclass GetSerNum_Name
{
[default] interface IGetSerNum_Name;
};
[
uuid(A683BD14-5565-4334-96AF-984CE9429AFA),
helpstring("GetISN Class")
]
coclass GetISN
{
[default] interface IGetISN;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -