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

📄 logbootevent.h

📁 中间件编写示例 COM与.NET组件服务
💻 H
字号:

#pragma warning( disable: 4049 )  /* more than 64k source lines */

/* this ALWAYS GENERATED file contains the definitions for the interfaces */


 /* File created by MIDL compiler version 6.00.0347 */
/* at Fri Oct 26 10:32:51 2001
 */
/* Compiler settings for LogBootEvent.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext
    error checks: allocation ref bounds_check enum stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 440
#endif

#include "rpc.h"
#include "rpcndr.h"

#ifndef __RPCNDR_H_VERSION__
#error this stub requires an updated version of <rpcndr.h>
#endif // __RPCNDR_H_VERSION__

#ifndef COM_NO_WINDOWS_H
#include "windows.h"
#include "ole2.h"
#endif /*COM_NO_WINDOWS_H*/

#ifndef __LogBootEvent_h__
#define __LogBootEvent_h__

#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif

/* Forward Declarations */ 

#ifndef __ILogbook_FWD_DEFINED__
#define __ILogbook_FWD_DEFINED__
typedef interface ILogbook ILogbook;
#endif 	/* __ILogbook_FWD_DEFINED__ */


#ifndef __LogbookEventClass_FWD_DEFINED__
#define __LogbookEventClass_FWD_DEFINED__

#ifdef __cplusplus
typedef class LogbookEventClass LogbookEventClass;
#else
typedef struct LogbookEventClass LogbookEventClass;
#endif /* __cplusplus */

#endif 	/* __LogbookEventClass_FWD_DEFINED__ */


/* header files for imported files */
#include "oaidl.h"
#include "ocidl.h"

#ifdef __cplusplus
extern "C"{
#endif 

void * __RPC_USER MIDL_user_allocate(size_t);
void __RPC_USER MIDL_user_free( void * ); 

#ifndef __ILogbook_INTERFACE_DEFINED__
#define __ILogbook_INTERFACE_DEFINED__

/* interface ILogbook */
/* [unique][helpstring][uuid][object] */ 

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;


EXTERN_C const IID IID_ILogbook;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("F6458918-791F-461B-8BE0-4F910A922B36")
    ILogbook : public IUnknown
    {
    public:
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LogError( 
            /* [in] */ LOG_ENTRY *pErrorEntry) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LogMethod( 
            /* [in] */ LOG_ENTRY *pMethodEntry) = 0;
        
        virtual /* [helpstring] */ HRESULT STDMETHODCALLTYPE LogEvent( 
            /* [in] */ LOG_ENTRY *pEventEntry) = 0;
        
    };
    
#else 	/* C style interface */

    typedef struct ILogbookVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            ILogbook * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            ILogbook * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            ILogbook * This);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *LogError )( 
            ILogbook * This,
            /* [in] */ LOG_ENTRY *pErrorEntry);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *LogMethod )( 
            ILogbook * This,
            /* [in] */ LOG_ENTRY *pMethodEntry);
        
        /* [helpstring] */ HRESULT ( STDMETHODCALLTYPE *LogEvent )( 
            ILogbook * This,
            /* [in] */ LOG_ENTRY *pEventEntry);
        
        END_INTERFACE
    } ILogbookVtbl;

    interface ILogbook
    {
        CONST_VTBL struct ILogbookVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


#define ILogbook_QueryInterface(This,riid,ppvObject)	\
    (This)->lpVtbl -> QueryInterface(This,riid,ppvObject)

#define ILogbook_AddRef(This)	\
    (This)->lpVtbl -> AddRef(This)

#define ILogbook_Release(This)	\
    (This)->lpVtbl -> Release(This)


#define ILogbook_LogError(This,pErrorEntry)	\
    (This)->lpVtbl -> LogError(This,pErrorEntry)

#define ILogbook_LogMethod(This,pMethodEntry)	\
    (This)->lpVtbl -> LogMethod(This,pMethodEntry)

#define ILogbook_LogEvent(This,pEventEntry)	\
    (This)->lpVtbl -> LogEvent(This,pEventEntry)

#endif /* COBJMACROS */


#endif 	/* C style interface */



/* [helpstring] */ HRESULT STDMETHODCALLTYPE ILogbook_LogError_Proxy( 
    ILogbook * This,
    /* [in] */ LOG_ENTRY *pErrorEntry);


void __RPC_STUB ILogbook_LogError_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring] */ HRESULT STDMETHODCALLTYPE ILogbook_LogMethod_Proxy( 
    ILogbook * This,
    /* [in] */ LOG_ENTRY *pMethodEntry);


void __RPC_STUB ILogbook_LogMethod_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);


/* [helpstring] */ HRESULT STDMETHODCALLTYPE ILogbook_LogEvent_Proxy( 
    ILogbook * This,
    /* [in] */ LOG_ENTRY *pEventEntry);


void __RPC_STUB ILogbook_LogEvent_Stub(
    IRpcStubBuffer *This,
    IRpcChannelBuffer *_pRpcChannelBuffer,
    PRPC_MESSAGE _pRpcMessage,
    DWORD *_pdwStubPhase);



#endif 	/* __ILogbook_INTERFACE_DEFINED__ */



#ifndef __LOGBOOTEVENTLib_LIBRARY_DEFINED__
#define __LOGBOOTEVENTLib_LIBRARY_DEFINED__

/* library LOGBOOTEVENTLib */
/* [helpstring][version][uuid] */ 


EXTERN_C const IID LIBID_LOGBOOTEVENTLib;

EXTERN_C const CLSID CLSID_LogbookEventClass;

#ifdef __cplusplus

class DECLSPEC_UUID("8AFBF443-A4CE-4947-95B4-AC87B5E0CD09")
LogbookEventClass;
#endif
#endif /* __LOGBOOTEVENTLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

unsigned long             __RPC_USER  BSTR_UserSize(     unsigned long *, unsigned long            , BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserMarshal(  unsigned long *, unsigned char *, BSTR * ); 
unsigned char * __RPC_USER  BSTR_UserUnmarshal(unsigned long *, unsigned char *, BSTR * ); 
void                      __RPC_USER  BSTR_UserFree(     unsigned long *, BSTR * ); 

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


⌨️ 快捷键说明

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