Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Finding Undisposed Objects

, 13 Aug 2009
An application to find undisposed objects in your .NET application.
Prize winner in Competition "Best C# article of July 2009"

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


 /* File created by MIDL compiler version 7.00.0500 */
/* at Thu Aug 13 11:52:28 2009
 */
/* Compiler settings for .\Undisposed.idl:
    Oicf, W1, Zp8, env=Win32 (32b run)
    protocol : dce , ms_ext, c_ext, robust
    error checks: stub_data 
    VC __declspec() decoration level: 
         __declspec(uuid()), __declspec(selectany), __declspec(novtable)
         DECLSPEC_UUID(), MIDL_INTERFACE()
*/
//@@MIDL_FILE_HEADING(  )

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


/* verify that the <rpcndr.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#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 __Undisposed_i_h__
#define __Undisposed_i_h__

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

/* Forward Declarations */ 

#ifndef __IProfilerCallbackServer_FWD_DEFINED__
#define __IProfilerCallbackServer_FWD_DEFINED__
typedef interface IProfilerCallbackServer IProfilerCallbackServer;
#endif 	/* __IProfilerCallbackServer_FWD_DEFINED__ */


#ifndef __ProfilerCallbackServer_FWD_DEFINED__
#define __ProfilerCallbackServer_FWD_DEFINED__

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

#endif 	/* __ProfilerCallbackServer_FWD_DEFINED__ */


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

#ifdef __cplusplus
extern "C"{
#endif 


#ifndef __IProfilerCallbackServer_INTERFACE_DEFINED__
#define __IProfilerCallbackServer_INTERFACE_DEFINED__

/* interface IProfilerCallbackServer */
/* [unique][helpstring][nonextensible][dual][uuid][object] */ 


EXTERN_C const IID IID_IProfilerCallbackServer;

#if defined(__cplusplus) && !defined(CINTERFACE)
    
    MIDL_INTERFACE("CE5F9DB4-D307-4345-8F58-D726B225775C")
    IProfilerCallbackServer : public IDispatch
    {
    public:
    };
    
#else 	/* C style interface */

    typedef struct IProfilerCallbackServerVtbl
    {
        BEGIN_INTERFACE
        
        HRESULT ( STDMETHODCALLTYPE *QueryInterface )( 
            IProfilerCallbackServer * This,
            /* [in] */ REFIID riid,
            /* [iid_is][out] */ 
            __RPC__deref_out  void **ppvObject);
        
        ULONG ( STDMETHODCALLTYPE *AddRef )( 
            IProfilerCallbackServer * This);
        
        ULONG ( STDMETHODCALLTYPE *Release )( 
            IProfilerCallbackServer * This);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfoCount )( 
            IProfilerCallbackServer * This,
            /* [out] */ UINT *pctinfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetTypeInfo )( 
            IProfilerCallbackServer * This,
            /* [in] */ UINT iTInfo,
            /* [in] */ LCID lcid,
            /* [out] */ ITypeInfo **ppTInfo);
        
        HRESULT ( STDMETHODCALLTYPE *GetIDsOfNames )( 
            IProfilerCallbackServer * This,
            /* [in] */ REFIID riid,
            /* [size_is][in] */ LPOLESTR *rgszNames,
            /* [range][in] */ UINT cNames,
            /* [in] */ LCID lcid,
            /* [size_is][out] */ DISPID *rgDispId);
        
        /* [local] */ HRESULT ( STDMETHODCALLTYPE *Invoke )( 
            IProfilerCallbackServer * This,
            /* [in] */ DISPID dispIdMember,
            /* [in] */ REFIID riid,
            /* [in] */ LCID lcid,
            /* [in] */ WORD wFlags,
            /* [out][in] */ DISPPARAMS *pDispParams,
            /* [out] */ VARIANT *pVarResult,
            /* [out] */ EXCEPINFO *pExcepInfo,
            /* [out] */ UINT *puArgErr);
        
        END_INTERFACE
    } IProfilerCallbackServerVtbl;

    interface IProfilerCallbackServer
    {
        CONST_VTBL struct IProfilerCallbackServerVtbl *lpVtbl;
    };

    

#ifdef COBJMACROS


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

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

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


#define IProfilerCallbackServer_GetTypeInfoCount(This,pctinfo)	\
    ( (This)->lpVtbl -> GetTypeInfoCount(This,pctinfo) ) 

#define IProfilerCallbackServer_GetTypeInfo(This,iTInfo,lcid,ppTInfo)	\
    ( (This)->lpVtbl -> GetTypeInfo(This,iTInfo,lcid,ppTInfo) ) 

#define IProfilerCallbackServer_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)	\
    ( (This)->lpVtbl -> GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) ) 

#define IProfilerCallbackServer_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)	\
    ( (This)->lpVtbl -> Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) ) 


#endif /* COBJMACROS */


#endif 	/* C style interface */




#endif 	/* __IProfilerCallbackServer_INTERFACE_DEFINED__ */



#ifndef __UndisposedLib_LIBRARY_DEFINED__
#define __UndisposedLib_LIBRARY_DEFINED__

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


EXTERN_C const IID LIBID_UndisposedLib;

EXTERN_C const CLSID CLSID_ProfilerCallbackServer;

#ifdef __cplusplus

class DECLSPEC_UUID("91EFB870-F9E2-4788-A47C-8F630302A10E")
ProfilerCallbackServer;
#endif
#endif /* __UndisposedLib_LIBRARY_DEFINED__ */

/* Additional Prototypes for ALL interfaces */

/* end of Additional Prototypes */

#ifdef __cplusplus
}
#endif

#endif


By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Microsoft Public License (Ms-PL)

Share

About the Author

S. Senthil Kumar
Software Developer Atmel R&D India Pvt. Ltd.
India India
I'm a 27 yrs old developer working with Atmel R&D India Pvt. Ltd., Chennai. I'm currently working in C# and C++, but I've done some Java programming as well. I was a Microsoft MVP in Visual C# from 2007 to 2009.
 
You can read My Blog here. I've also done some open source software - please visit my website to know more.

| Advertise | Privacy | Mobile
Web03 | 2.8.140821.2 | Last Updated 13 Aug 2009
Article Copyright 2009 by S. Senthil Kumar
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid