diff options
Diffstat (limited to 'redist/symbol_enumerator.h')
-rw-r--r-- | redist/symbol_enumerator.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redist/symbol_enumerator.h b/redist/symbol_enumerator.h new file mode 100644 index 0000000..87e033b --- /dev/null +++ b/redist/symbol_enumerator.h @@ -0,0 +1,12 @@ +#ifndef _SYMBOL_ENUMERATOR_H +#define _SYMBOL_ENUMERATOR_H + +//Enumerates all symbols in the currently loaded excutable. +//Don't forget to compile with -rdynamic! + +//Return 0 to continue search. 1 to stop. +typedef int (*SymEnumeratorCallback)( const char * path, const char * name, void * location, long size ); + +int EnumerateSymbols( SymEnumeratorCallback cb ); + +#endif |