xpmgr/BuildTools/Include/gchost.h

239 lines
5.9 KiB
C++

/* this ALWAYS GENERATED file contains the definitions for the interfaces */
/* File created by MIDL compiler version 7.00.0499 */
/* Compiler settings for gchost.idl:
Oicf, W1, Zp8, env=Win32 (32b run)
protocol : dce , ms_ext, c_ext, robust
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( )
#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
/* verify that the <rpcsal.h> version is high enough to compile this file*/
#ifndef __REQUIRED_RPCSAL_H_VERSION__
#define __REQUIRED_RPCSAL_H_VERSION__ 100
#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 __gchost_h__
#define __gchost_h__
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
/* Forward Declarations */
#ifndef __IGCHost_FWD_DEFINED__
#define __IGCHost_FWD_DEFINED__
typedef interface IGCHost IGCHost;
#endif /* __IGCHost_FWD_DEFINED__ */
/* header files for imported files */
#include "unknwn.h"
#ifdef __cplusplus
extern "C"{
#endif
/* interface __MIDL_itf_gchost_0000_0000 */
/* [local] */
typedef /* [public] */
enum __MIDL___MIDL_itf_gchost_0000_0000_0001
{ COR_GC_COUNTS = 0x1,
COR_GC_MEMORYUSAGE = 0x2
} COR_GC_STAT_TYPES;
typedef /* [public] */
enum __MIDL___MIDL_itf_gchost_0000_0000_0002
{ COR_GC_THREAD_HAS_PROMOTED_BYTES = 0x1
} COR_GC_THREAD_STATS_TYPES;
typedef struct _COR_GC_STATS
{
ULONG Flags;
SIZE_T ExplicitGCCount;
SIZE_T GenCollectionsTaken[ 3 ];
SIZE_T CommittedKBytes;
SIZE_T ReservedKBytes;
SIZE_T Gen0HeapSizeKBytes;
SIZE_T Gen1HeapSizeKBytes;
SIZE_T Gen2HeapSizeKBytes;
SIZE_T LargeObjectHeapSizeKBytes;
SIZE_T KBytesPromotedFromGen0;
SIZE_T KBytesPromotedFromGen1;
} COR_GC_STATS;
typedef struct _COR_GC_THREAD_STATS
{
ULONGLONG PerThreadAllocation;
ULONG Flags;
} COR_GC_THREAD_STATS;
extern RPC_IF_HANDLE __MIDL_itf_gchost_0000_0000_v0_0_c_ifspec;
extern RPC_IF_HANDLE __MIDL_itf_gchost_0000_0000_v0_0_s_ifspec;
#ifndef __IGCHost_INTERFACE_DEFINED__
#define __IGCHost_INTERFACE_DEFINED__
/* interface IGCHost */
/* [local][unique][uuid][object] */
EXTERN_C const IID IID_IGCHost;
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("FAC34F6E-0DCD-47b5-8021-531BC5ECCA63")
IGCHost : public IUnknown
{
public:
virtual HRESULT STDMETHODCALLTYPE SetGCStartupLimits(
/* [in] */ DWORD SegmentSize,
/* [in] */ DWORD MaxGen0Size) = 0;
virtual HRESULT STDMETHODCALLTYPE Collect(
/* [in] */ LONG Generation) = 0;
virtual HRESULT STDMETHODCALLTYPE GetStats(
/* [out][in] */ COR_GC_STATS *pStats) = 0;
virtual HRESULT STDMETHODCALLTYPE GetThreadStats(
/* [in] */ DWORD *pFiberCookie,
/* [out][in] */ COR_GC_THREAD_STATS *pStats) = 0;
virtual HRESULT STDMETHODCALLTYPE SetVirtualMemLimit(
/* [in] */ SIZE_T sztMaxVirtualMemMB) = 0;
};
#else /* C style interface */
typedef struct IGCHostVtbl
{
BEGIN_INTERFACE
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
IGCHost * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */
__RPC__deref_out void **ppvObject);
ULONG ( STDMETHODCALLTYPE *AddRef )(
IGCHost * This);
ULONG ( STDMETHODCALLTYPE *Release )(
IGCHost * This);
HRESULT ( STDMETHODCALLTYPE *SetGCStartupLimits )(
IGCHost * This,
/* [in] */ DWORD SegmentSize,
/* [in] */ DWORD MaxGen0Size);
HRESULT ( STDMETHODCALLTYPE *Collect )(
IGCHost * This,
/* [in] */ LONG Generation);
HRESULT ( STDMETHODCALLTYPE *GetStats )(
IGCHost * This,
/* [out][in] */ COR_GC_STATS *pStats);
HRESULT ( STDMETHODCALLTYPE *GetThreadStats )(
IGCHost * This,
/* [in] */ DWORD *pFiberCookie,
/* [out][in] */ COR_GC_THREAD_STATS *pStats);
HRESULT ( STDMETHODCALLTYPE *SetVirtualMemLimit )(
IGCHost * This,
/* [in] */ SIZE_T sztMaxVirtualMemMB);
END_INTERFACE
} IGCHostVtbl;
interface IGCHost
{
CONST_VTBL struct IGCHostVtbl *lpVtbl;
};
#ifdef COBJMACROS
#define IGCHost_QueryInterface(This,riid,ppvObject) \
( (This)->lpVtbl -> QueryInterface(This,riid,ppvObject) )
#define IGCHost_AddRef(This) \
( (This)->lpVtbl -> AddRef(This) )
#define IGCHost_Release(This) \
( (This)->lpVtbl -> Release(This) )
#define IGCHost_SetGCStartupLimits(This,SegmentSize,MaxGen0Size) \
( (This)->lpVtbl -> SetGCStartupLimits(This,SegmentSize,MaxGen0Size) )
#define IGCHost_Collect(This,Generation) \
( (This)->lpVtbl -> Collect(This,Generation) )
#define IGCHost_GetStats(This,pStats) \
( (This)->lpVtbl -> GetStats(This,pStats) )
#define IGCHost_GetThreadStats(This,pFiberCookie,pStats) \
( (This)->lpVtbl -> GetThreadStats(This,pFiberCookie,pStats) )
#define IGCHost_SetVirtualMemLimit(This,sztMaxVirtualMemMB) \
( (This)->lpVtbl -> SetVirtualMemLimit(This,sztMaxVirtualMemMB) )
#endif /* COBJMACROS */
#endif /* C style interface */
#endif /* __IGCHost_INTERFACE_DEFINED__ */
/* Additional Prototypes for ALL interfaces */
/* end of Additional Prototypes */
#ifdef __cplusplus
}
#endif
#endif