#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <assert.h>
#include <windows.h>
Go to the source code of this file.
#define AFX_LIBSYMBOLINFO_H__1A7003B4_BA53_11D1_AE46_1CFB51000000__INCLUDED_ |
#define MakePtr |
( |
|
cast, |
|
|
|
ptr, |
|
|
|
addValue |
|
) |
| (cast)( (DWORD)(ptr) + (DWORD)(addValue)) |
Enumerator |
---|
errMMF_NoError |
|
errMMF_FileOpen |
|
errMMF_FileMapping |
|
errMMF_MapView |
|
errMMF_NoError |
|
errMMF_FileOpen |
|
errMMF_FileMapping |
|
errMMF_MapView |
|
Definition at line 77 of file genwindef.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 359 of file genwindef.cc.
References tca::debug, CLibSymbolInfo::DumpSymbols(), and windef::usage().
362 string outfile(
"exports.def");
363 string library(
"UnknownLib");
370 while (argv[arg][0] ==
'-') {
371 if (strcmp(argv[arg],
"--") == 0) {
374 else if (strcmp(argv[arg],
"-l") == 0) {
379 else if (strcmp(argv[arg],
"-o") == 0) {
387 for (arg; arg < argc; arg++) {
388 objfiles += argv[arg];
389 if( arg+1 < argc) objfiles +=
" ";
393 ofstream out(outfile.c_str());
395 cerr <<
"windef: Error opening file " << outfile << endl;
398 out <<
"LIBRARY " << library << endl;
399 out <<
"EXPORTS" << endl;
401 libsymbols.
DumpSymbols(const_cast<char*>(objfiles.c_str()), out);
BOOL DumpSymbols(LPTSTR lpszLibPathName, std::ostream &pFile)