📄 simplednsresolver.idl
字号:
// SimpleDNSResolver.idl : IDL source for SimpleDNSResolver.dll
//
// This file will be processed by the MIDL tool to
// produce the type library (SimpleDNSResolver.tlb) and marshalling code.
import "oaidl.idl";
import "ocidl.idl";
[
object,
uuid(B91D4567-D492-11D3-8021-0010E3B966CE),
dual,
helpstring("ISimpleDNSClient Interface"),
pointer_default(unique)
]
interface ISimpleDNSClient : IDispatch
{
[id(3), helpstring("method Resolve")] HRESULT Resolve([in] BSTR BSearchedName, [out] VARIANT *pvFoundNames, [in, defaultvalue("C_IN")] BSTR BResourceClass, [in, defaultvalue("T_A")] BSTR BResourceType);
[id(4), helpstring("method GetDNSDomain")] HRESULT GetDNSDomain([out] VARIANT *pvDNSDomainName);
[propget, id(7), helpstring("property Separator")] HRESULT Separator([out, retval] BSTR *pVal);
[propput, id(7), helpstring("property Separator")] HRESULT Separator([in] BSTR newVal);
[id(8), helpstring("method GetEmailServers")] HRESULT GetEmailServers([in] BSTR BDomainName, [out] VARIANT *pvEmailServerNames);
[propget, id(9), helpstring("property ServerAddresses")] HRESULT ServerAddresses([out, retval] BSTR *pVal);
[propput, id(9), helpstring("property ServerAddresses")] HRESULT ServerAddresses([in] BSTR newVal);
[id(10), helpstring("method FindServerAddresses")] HRESULT FindServerAddresses(VARIANT *pvServerAddresses);
};
[
uuid(B91D4558-D492-11D3-8021-0010E3B966CE),
version(1.0),
helpstring("SimpleDNSResolver 1.0 Type Library")
]
library SIMPLEDNSRESOLVERLib
{
importlib("stdole32.tlb");
importlib("stdole2.tlb");
[
uuid(B91D4568-D492-11D3-8021-0010E3B966CE),
helpstring("SimpleDNSClient Class")
]
coclass SimpleDNSClient
{
[default] interface ISimpleDNSClient;
};
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -