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

📄 synctest.idl

📁 【内容简介】 本书由一流的权威撰写
💻 IDL
字号:
// SyncTest.idl : IDL source for SyncTest.dll
//

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

import "oaidl.idl";
import "ocidl.idl";
	
	[
		object,
		uuid(881A61AF-EABC-4269-9B76-8F602747E5A5),
		dual,
		helpstring("IPerson Interface"),
		pointer_default(unique)
	]
	interface IPerson : IDispatch
	{
		[id(1), helpstring("method LockAccess")] HRESULT LockAccess();
		[id(2), helpstring("method UnlockAccess")] HRESULT UnlockAccess();
		[id(3), helpstring("method SetFirstName")] HRESULT SetFirstName([in] BSTR bsFirstName);
		[id(4), helpstring("method SetLastName")] HRESULT SetLastName([in] BSTR bsLastName);
		[id(5), helpstring("method GetName")] HRESULT GetName([out] BSTR* pbsFirstName, [out] BSTR* pbsLastName);
	};

[
	uuid(61DCF0BE-80DF-47D0-9138-6D7CA178BB8B),
	version(1.0),
	helpstring("SyncTest 1.0 Type Library")
]
library SYNCTESTLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");

	
	[
		uuid(9838CED4-86AB-4BF1-9480-BD9FEEF6D651),
		helpstring("Person Class")
	]
	coclass Person
	{
		[default] interface IPerson;
	};
};

⌨️ 快捷键说明

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