Make your own free website on Tripod.com
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

symbols.h File Reference

#include <string>
#include <set>

Go to the source code of this file.

Compounds

struct  Symbol
 hold info (api name and address) on a single symbol. More...

class  Symbols
 Contain all info for API call (imports and exports). More...

struct  SymbolsAddImportParam

Functions

void SymbolsAddImport (uint32_t address, uint32_t hint, const char *dll_name, const char *func_name, void *param)


Function Documentation

void SymbolsAddImport uint32_t    address,
uint32_t    hint,
const char *    dll_name,
const char *    func_name,
void *    param
 

Definition at line 85 of file symbols.cpp.

References ApiCache::GetFullApiName(), SymbolsAddImportParam::imageBase, Symbols::insert(), and SymbolsAddImportParam::symbols.

00086 {
00087   if (address != 0)
00088   {
00089         SymbolsAddImportParam *p = (SymbolsAddImportParam*)param;
00090     char s[10]; // !!! constant
00091     std::string name(dll_name);
00092     name += ".";
00093     if (func_name != NULL)
00094       name += func_name;
00095     else
00096     {
00097       // name += itoa(hint,s,10);
00098       sprintf(s,"%i",hint);
00099       name += s; //itoa(hint,s,10);
00100       
00101       std::string fullName;
00102       if (ApiCache::GetFullApiName(fullName,dll_name,hint))
00103       {
00104         name += " (";
00105                                 name += fullName;
00106                                 name += ")";
00107       }
00108     }
00109     p->symbols->insert(name,address+p->imageBase);
00110   }
00111 }


Generated on Mon Jan 13 22:20:35 2003 for perdr by doxygen1.2.15