#include <windows.h>
#include <stdio.h>
#include <string>
#include <fstream>
Go to the source code of this file.
Functions | |
int | GetArgcArgv (std::string &s, char **argv) |
PSTR | GetSZStorageClass (BYTE storageClass) |
void | AddHex (std::string &buf, long val, bool caps=false) |
void | GetSectionName (PIMAGE_SYMBOL pSymbolTable, std::string &buffer) |
void | GetSectionCharacteristics (PIMAGE_SECTION_HEADER pSectionHeaders, int nSectNum, std::string &buffer) |
void | DumpSymbolTable (PIMAGE_SYMBOL pSymbolTable, PIMAGE_SECTION_HEADER pSectionHeaders, FILE *fout, unsigned cSymbols) |
void | DumpExternals (PIMAGE_SYMBOL pSymbolTable, FILE *fout, unsigned cSymbols) |
const char * | StrNStr (const char *start, const char *find, size_t &size) |
int | HaveExportedObjects (PIMAGE_FILE_HEADER pImageFileHeader, PIMAGE_SECTION_HEADER pSectionHeaders, FILE *fout) |
void | DumpExternalsObjects (PIMAGE_SYMBOL pSymbolTable, PIMAGE_SECTION_HEADER pSectionHeaders, FILE *fout, unsigned cSymbols, int fort) |
void | DumpObjFile (PIMAGE_FILE_HEADER pImageFileHeader, FILE *fout, int full, int fort) |
void | DumpFile (LPSTR filename, FILE *fout, int full, int fort) |
void | main (int argc, char **argv) |
Variables | |
static char | sccsid [] = "@(#) winDumpExts.c 1.2 95/10/03 15:27:34" |
char * | SzStorageClass1 [] |
char * | SzStorageClass2 [] |
void AddHex | ( | std::string & | buf, | |
long | val, | |||
bool | caps = false | |||
) |
Definition at line 149 of file bindexplib.cxx.
References len.
Referenced by GetSectionCharacteristics(), and GetSectionName().
void DumpExternals | ( | PIMAGE_SYMBOL | pSymbolTable, | |
FILE * | fout, | |||
unsigned | cSymbols | |||
) |
void DumpExternalsObjects | ( | PIMAGE_SYMBOL | pSymbolTable, | |
PIMAGE_SECTION_HEADER | pSectionHeaders, | |||
FILE * | fout, | |||
unsigned | cSymbols, | |||
int | fort | |||
) |
Definition at line 427 of file bindexplib.cxx.
References DWORD, fprintf(), i, if(), x0, and x20.
Referenced by DumpObjFile().
void DumpFile | ( | LPSTR | filename, | |
FILE * | fout, | |||
int | full, | |||
int | fort | |||
) |
Definition at line 563 of file bindexplib.cxx.
References DumpObjFile(), fprintf(), HANDLE, INVALID_HANDLE_VALUE, LPVOID, and NULL.
Referenced by main().
void DumpObjFile | ( | PIMAGE_FILE_HEADER | pImageFileHeader, | |
FILE * | fout, | |||
int | full, | |||
int | fort | |||
) |
Definition at line 529 of file bindexplib.cxx.
References DumpExternalsObjects(), DumpSymbolTable(), DWORD, and HaveExportedObjects().
Referenced by DumpFile().
void DumpSymbolTable | ( | PIMAGE_SYMBOL | pSymbolTable, | |
PIMAGE_SECTION_HEADER | pSectionHeaders, | |||
FILE * | fout, | |||
unsigned | cSymbols | |||
) |
Definition at line 238 of file bindexplib.cxx.
References fprintf(), GetSectionCharacteristics(), GetSectionName(), GetSZStorageClass(), and i.
Referenced by DumpObjFile().
int GetArgcArgv | ( | std::string & | s, | |
char ** | argv | |||
) |
void GetSectionCharacteristics | ( | PIMAGE_SECTION_HEADER | pSectionHeaders, | |
int | nSectNum, | |||
std::string & | buffer | |||
) |
Definition at line 202 of file bindexplib.cxx.
References AddHex(), and DWORD.
Referenced by DumpSymbolTable().
void GetSectionName | ( | PIMAGE_SYMBOL | pSymbolTable, | |
std::string & | buffer | |||
) |
Definition at line 175 of file bindexplib.cxx.
References AddHex(), and DWORD.
Referenced by DumpSymbolTable().
PSTR GetSZStorageClass | ( | BYTE | storageClass | ) |
Definition at line 138 of file bindexplib.cxx.
References SzStorageClass1, and SzStorageClass2.
Referenced by DumpSymbolTable().
int HaveExportedObjects | ( | PIMAGE_FILE_HEADER | pImageFileHeader, | |
PIMAGE_SECTION_HEADER | pSectionHeaders, | |||
FILE * | fout | |||
) |
Definition at line 372 of file bindexplib.cxx.
References i, if(), int, size, size_t, and StrNStr().
Referenced by DumpObjFile().
void main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 619 of file bindexplib.cxx.
References DumpFile(), fopen, fprintf(), GetArgcArgv(), getline(), HANDLE, i, INVALID_HANDLE_VALUE, line, NULL, outfile, strcat(), and Usage().
const char* StrNStr | ( | const char * | start, | |
const char * | find, | |||
size_t & | size | |||
) |
char sccsid[] = "@(#) winDumpExts.c 1.2 95/10/03 15:27:34" [static] |
Definition at line 56 of file bindexplib.cxx.
char* SzStorageClass1[] |
Initial value:
{ "NULL","AUTOMATIC","EXTERNAL","STATIC","REGISTER","EXTERNAL_DEF","LABEL", "UNDEFINED_LABEL","MEMBER_OF_STRUCT","ARGUMENT","STRUCT_TAG", "MEMBER_OF_UNION","UNION_TAG","TYPE_DEFINITION","UNDEFINED_STATIC", "ENUM_TAG","MEMBER_OF_ENUM","REGISTER_PARAM","BIT_FIELD" }
Definition at line 115 of file bindexplib.cxx.
Referenced by GetSZStorageClass().
char* SzStorageClass2[] |
Initial value:
{ "BLOCK","FUNCTION","END_OF_STRUCT","FILE","SECTION","WEAK_EXTERNAL" }
Definition at line 125 of file bindexplib.cxx.
Referenced by GetSZStorageClass().