Eneboo - Documentación para desarrolladores
Clases | 'defines' | 'typedefs' | Funciones | Variables
Referencia del Archivo src/hoard/src/hoarddetours.cpp

Hooks to Hoard for Detours. Más...

#include "VERSION.h"
#include <windows.h>
#include <stdio.h>
#include <malloc.h>
#include "detours.h"
#include "cpuinfo.h"
#include "hoard.h"
#include "wrapper.cpp"

Clases

class  TheCustomHeapType

'defines'

#define CUSTOM_PREFIX(n)   hoard##n
#define WIN32_LEAN_AND_MEAN
#define _WIN32_WINNT   0x0500
#define NT
#define REPLACE(module, x, fn)
#define REMOVE(module, x, fn)

'typedefs'

typedef void(* exitFunctionType )(void)

Funciones

 DETOUR_TRAMPOLINE (void __cdecl real_onexit(void(*f)(void)), onexit)
 DETOUR_TRAMPOLINE (void __cdecl real_exit(int code), exit)
 DETOUR_TRAMPOLINE (void *__cdecl real_malloc(size_t sz), malloc)
 DETOUR_TRAMPOLINE (void *__cdecl real_realloc(void *ptr, size_t sz), realloc)
 DETOUR_TRAMPOLINE (void *__cdecl real_calloc(size_t sz, size_t n), calloc)
 DETOUR_TRAMPOLINE (void *__cdecl real_free(void *ptr), free)
 DETOUR_TRAMPOLINE (size_t __cdecl real_msize(void *ptr), _msize)
 DETOUR_TRAMPOLINE (void *__cdecl real_expand(void *memblock, size_t size), _expand)
 DETOUR_TRAMPOLINE (char *__cdecl real_strdup(const char *s), strdup)
void my_onexit (void(*function)(void))
void my_exit (int code)
void my_cexit (void)
void * my_expand (void *memblock, size_t size)
void trampolineInstall (HMODULE hModule, bool insert)
void trampolineWith (HMODULE hModule)
BOOL APIENTRY DllMain (HINSTANCE hModule, DWORD dwReason, PVOID lpReserved)

Variables

volatile int anyThreadCreated = 0
const int MaxThreads = 512
const int NumHeaps = 64
exitFunctionType exitFunctionBuffer [HOARD_MAX_EXIT_FUNCTIONS]

Descripción detallada

Hooks to Hoard for Detours.

Autor:
Emery Berger <http://www.cs.umass.edu/~emery>

Documentación de los 'defines'

#define _WIN32_WINNT   0x0500
#define CUSTOM_PREFIX (   n)    hoard##n
#define NT
#define REMOVE (   module,
  x,
  fn 
)
Valor:
{ \
  PBYTE p; \
  p = DetourFindFunction ((module), (x)); \
  if (p) { \
    DetourRemove (p, (PBYTE) (fn));  \
  } \
}
#define REPLACE (   module,
  x,
  fn 
)
Valor:
{ \
  PBYTE p; \
  p = DetourFindFunction ((module), (x)); \
  if (p) { \
    DetourFunction (p, (PBYTE) (fn));  \
  } \
}
#define WIN32_LEAN_AND_MEAN

Documentación de los 'typedefs'

typedef void(* exitFunctionType)(void)

Documentación de las funciones

DETOUR_TRAMPOLINE ( void __cdecl   real_onexitvoid(*f)(void),
onexit   
)
DETOUR_TRAMPOLINE ( void *__cdecl   real_mallocsize_t sz,
malloc   
)
DETOUR_TRAMPOLINE ( size_t __cdecl   real_msizevoid *ptr,
_msize   
)
DETOUR_TRAMPOLINE ( void *__cdecl   real_expandvoid *memblock, size_t size,
_expand   
)
DETOUR_TRAMPOLINE ( void *__cdecl   real_reallocvoid *ptr, size_t sz,
realloc   
)
DETOUR_TRAMPOLINE ( char *__cdecl   real_strdupconst char *s,
strdup   
)
DETOUR_TRAMPOLINE ( void __cdecl   real_exitint code,
exit   
)
DETOUR_TRAMPOLINE ( void *__cdecl   real_callocsize_t sz, size_t n,
calloc   
)
DETOUR_TRAMPOLINE ( void *__cdecl   real_freevoid *ptr,
free   
)
BOOL APIENTRY DllMain ( HINSTANCE  hModule,
DWORD  dwReason,
PVOID  lpReserved 
)
void my_cexit ( void  )
void my_exit ( int  code)
void* my_expand ( void *  memblock,
size_t  size 
)
void my_onexit ( void(*)(void)  function)
void trampolineInstall ( HMODULE  hModule,
bool  insert 
)
void trampolineWith ( HMODULE  hModule)

Documentación de las variables

volatile int anyThreadCreated = 0
exitFunctionType exitFunctionBuffer[HOARD_MAX_EXIT_FUNCTIONS]
const int MaxThreads = 512
const int NumHeaps = 64
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'