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

📄 logbootevent.idl

📁 中间件编写示例 COM与.NET组件服务
💻 IDL
字号:
// LogBootEvent.idl : IDL source for LogBootEvent.dll
//

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

import "oaidl.idl";
import "ocidl.idl";

	[
		object,
		uuid(F6458918-791F-461B-8BE0-4F910A922B36),
	
		helpstring("ILogbook Interface"),
		pointer_default(unique)
	]
	interface ILogbook : IUnknown
	{
      typedef struct tagLOG_ENTRY
      {   
         HRESULT  hres;
         DWORD    dwErrorCode;
         DWORD    dwProcessID;
         DWORD    dwThreadID;
         GUID     guidActivityID;
         GUID     guidTransactionID;
         BSTR     bstrMachineName;
         BSTR     bstrSourceFileName;
         BSTR     bstrModuleName;
         BSTR     bstrMethodName;
         DWORD    dwLineNumber;
         BSTR     bstrDescription;
         IID      iidError;
         FILETIME eventTime;
      }LOG_ENTRY; 

		[helpstring("method LogError")]  HRESULT LogError([in]LOG_ENTRY*   pErrorEntry);
		[helpstring("method LogMethod")] HRESULT LogMethod([in]LOG_ENTRY*  pMethodEntry);
		[helpstring("method LogEvent")]  HRESULT LogEvent([in]LOG_ENTRY*   pEventEntry);
	};
[
	uuid(3F65AB10-F792-43FB-B228-AF775C4013B1),
	version(1.0),
	helpstring("LogBookEvent 1.0 Type Library")
]
library LOGBOOTEVENTLib
{
	importlib("stdole32.tlb");
	importlib("stdole2.tlb");
	[
		uuid(8AFBF443-A4CE-4947-95B4-AC87B5E0CD09),
		helpstring("LogbookEventClass Class")
	]
	coclass LogbookEventClass
	{
		[default] interface ILogbook;
	};
};

⌨️ 快捷键说明

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