⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 securestorage.idl

📁 采用c++实现的文件加密程序
💻 IDL
字号:
// SecureStorage.idl : IDL source for SecureStorage.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	[
		object,
		uuid(20BFEDAD-0B44-47D8-87F4-A3338AC6228B),
		dual,
		helpstring("ISecure Interface"),
		pointer_default(unique)
	]
	interface ISecure : IDispatch
	{
		[id(1), helpstring("method Encrypt")] HRESULT Encrypt([in] BSTR key, [in] BSTR value, [out,retval] BSTR * cipher);
		[id(2), helpstring("method Decrypt")] HRESULT Decrypt([in] BSTR key, [in] BSTR cipher, [out,retval] BSTR * clearText);
		[propget, id(3), helpstring("property RegistryKey")] HRESULT RegistryKey([out, retval] BSTR *pVal);
		[propput, id(3), helpstring("property RegistryKey")] HRESULT RegistryKey([in] BSTR newVal);
		[id(4), helpstring("method EncryptToRegistry")] HRESULT EncryptToRegistry([in] BSTR key, [in] BSTR name, [in] BSTR value);
		[id(5), helpstring("method DecryptFromRegistry")] HRESULT DecryptFromRegistry([in] BSTR key, [in] BSTR name, [out, retval] BSTR * value);
	};

[
	uuid(AC7E2C74-E0FB-4208-83BC-1138D90728A4),
	version(1.0),
	helpstring("SecureStorage 1.0 Type Library")
]
library SECURESTORAGELib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	[
		uuid(96AFE057-ACE7-4EFF-A807-9441BB126E2E),
		helpstring("Secure Class")
	]
	coclass Secure
	{
		[default] interface ISecure;
	};
};

⌨️ 快捷键说明

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