示例#1
0
#include "sysbrg_api_log.h"
#include "ump_api_km.h"
#include "system.h"

extern IMG_INT32 gi32ApiEntries;
extern LOG_sApiInfo asApiInfo[];

#define DECL_API(api)																					\
{ API_ID_##api, #api, & api##sApiEventInfo[0], (sizeof( api##sApiEventInfo)/sizeof(LOG_sApiEventInfo)) },

/*
******************************************************************************
To include the logging for an API include the API using the DECL_API macro here...
*****************************************************************************/
LOG_sApiInfo asApiInfo[] = {
	DECL_API(DMAN)
	DECL_API(DMANKM)
	DECL_API(VDECDD)
#ifdef USE_KERNEL_MODE_DMAC_DEVICE_DRIVER
	DECL_API(DMACDD)
#endif
	DECL_API(PALLOC)
	DECL_API(WRAPU)
	DECL_API(SYSBRG)

	{ 0, IMG_NULL, IMG_NULL, 0 }			/*** Used to identify the end of the list ***/
};

IMG_INT32 gi32ApiEntries = sizeof(asApiInfo) / sizeof(asApiInfo[0]);

#if !(defined __RELEASE_RELEASE__ || defined NO_ASSERT)
示例#2
0
#include "common.h"
#include "kexcoresdk.h"
#include "_gdi32_apilist.h"

BOOL InitUberGDI(void);

BOOL init_gdi32()
{
	return InitUberGDI();
}

static const apilib_named_api gdi32_named_apis[] = 
{
/*** AUTOGENERATED APILIST NAMED EXPORTS BEGIN ***/
	DECL_API("CopyEnhMetaFileW", CopyEnhMetaFileW_fwd),
	DECL_API("CopyMetaFileW", CopyMetaFileW_fwd),
	DECL_API("CreateColorSpaceW", CreateColorSpaceW_fwd),
	DECL_API("CreateDCW", CreateDCW_fwd),
	DECL_API("CreateEnhMetaFileW", CreateEnhMetaFileW_fwd),
	DECL_API("CreateFontIndirectW", CreateFontIndirectW_fwd),
	DECL_API("CreateFontW", CreateFontW_fwd),
	DECL_API("CreateICW", CreateICW_fwd),
	DECL_API("CreateMetaFileW", CreateMetaFileW_fwd),
	DECL_API("CreateScalableFontResourceW", CreateScalableFontResourceW_fwd),
	DECL_API("EnumICMProfilesW", EnumICMProfilesW_fwd),
	DECL_API("GetCharABCWidthsI", GetCharABCWidthsI_new),
	DECL_API("GetCharABCWidthsW", GetCharABCWidthsW_new),
	DECL_API("GetCharWidthI", GetCharWidthI_new),
	DECL_API("GetCharacterPlacementW", GetCharacterPlacementW_fwd),
	DECL_API("GetEnhMetaFileDescriptionW", GetEnhMetaFileDescriptionW_fwd),