cryptoproj.idl

来自「简单的加解密 希望大家多指教 我也是刚学 还有很多都不会 希望通过大家的帮助来加」· IDL 代码 · 共 41 行

IDL
41
字号
// CryptoProj.idl : IDL source for CryptoProj.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(31D4E70B-1F1E-4E1C-B0D4-4C926323CDAF),
		dual,
		helpstring("ICrypto Interface"),
		pointer_default(unique)
	]
	interface ICrypto : IDispatch
	{
		[id(1), helpstring("method Encrypt")] HRESULT Encrypt([in] BSTR bstrPlainText, [in] BSTR bstrPassword, [out, retval] VARIANT *vCipherText);
		[id(2), helpstring("method Decrypt")] HRESULT Decrypt([in] VARIANT vCipherText, [in] BSTR bstrPassword, [out, retval] BSTR *bstrPlainText);
	};

[
	uuid(948A720C-5669-4B77-86B2-C77653C51647),
	version(1.0),
	helpstring("CryptoProj 1.0 Type Library")
]
library CRYPTOPROJLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(F5F95606-B67C-4FFB-AF5A-17F51A35E5D0),
		helpstring("Crypto Class")
	]
	coclass Crypto
	{
		[default] interface ICrypto;
	};
};

⌨️ 快捷键说明

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