#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)(ptr) + (DWORD_PTR)(addValue)) |
Enumerator |
---|
errMMF_NoError |
|
errMMF_FileOpen |
|
errMMF_FileMapping |
|
errMMF_MapView |
|
Definition at line 76 of file genwindef.cc.
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 358 of file genwindef.cc.
References tca::debug, CLibSymbolInfo::DumpSymbols(), and windef::usage().
361 string outfile(
"exports.def");
362 string library(
"UnknownLib");
369 while (argv[arg][0] ==
'-') {
370 if (strcmp(argv[arg],
"--") == 0) {
373 else if (strcmp(argv[arg],
"-l") == 0) {
378 else if (strcmp(argv[arg],
"-o") == 0) {
386 for (arg; arg < argc; arg++) {
387 objfiles += argv[arg];
388 if( arg+1 < argc) objfiles +=
" ";
392 ofstream out(outfile.c_str());
394 cerr <<
"windef: Error opening file " << outfile << endl;
397 out <<
"LIBRARY " << library << endl;
398 out <<
"EXPORTS" << endl;
400 libsymbols.
DumpSymbols(const_cast<char*>(objfiles.c_str()), out);
BOOL DumpSymbols(LPTSTR lpszLibPathName, std::ostream &pFile)