libPeConv
A library to load, manipulate, dump PE files.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
peconv::ExportedFunc Class Reference

#include <exported_func.h>

Public Member Functions

 ExportedFunc ()
 
 ExportedFunc (const ExportedFunc &other)
 
 ExportedFunc (std::string libName, std::string funcName, DWORD funcOrdinal)
 
 ExportedFunc (std::string libName, DWORD funcOrdinal)
 
 ExportedFunc (const std::string &forwarderName)
 
bool operator< (const ExportedFunc &other) const
 
std::string toString () const
 
std::string nameToString () const
 
bool isValid () const
 

Static Public Member Functions

static std::string formatName (std::string name)
 
static bool isTheSameFuncName (const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2)
 Compares functions' names. If function is defined by an ordinal, compares ordinals. Does not include the DLL name in the comparison.
 
static bool isTheSameDllName (const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2)
 Compares functions' DLL names.
 
static bool isTheSameFunc (const peconv::ExportedFunc &func1, const peconv::ExportedFunc &func2)
 Compares functions' names. If function is defined by an ordinal, compares ordinals. Includes the DLL name in the comparison.
 

Public Attributes

std::string libName
 
std::string funcName
 
DWORD funcOrdinal
 
bool isByOrdinal
 

Detailed Description

A class storing the information about the exported function.

Definition at line 53 of file exported_func.h.

Constructor & Destructor Documentation

◆ ExportedFunc() [1/5]

peconv::ExportedFunc::ExportedFunc ( )
inline

Definition at line 76 of file exported_func.h.

◆ ExportedFunc() [2/5]

ExportedFunc::ExportedFunc ( const ExportedFunc & other)

Definition at line 121 of file exported_func.cpp.

◆ ExportedFunc() [3/5]

ExportedFunc::ExportedFunc ( std::string libName,
std::string funcName,
DWORD funcOrdinal )

Definition at line 106 of file exported_func.cpp.

Here is the call graph for this function:

◆ ExportedFunc() [4/5]

ExportedFunc::ExportedFunc ( std::string libName,
DWORD funcOrdinal )

Definition at line 114 of file exported_func.cpp.

Here is the call graph for this function:

◆ ExportedFunc() [5/5]

ExportedFunc::ExportedFunc ( const std::string & forwarderName)

Definition at line 129 of file exported_func.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ formatName()

std::string ExportedFunc::formatName ( std::string name)
static

Converts the name to the normalized format.

Definition at line 156 of file exported_func.cpp.

Here is the call graph for this function:

◆ isTheSameDllName()

bool ExportedFunc::isTheSameDllName ( const peconv::ExportedFunc & func1,
const peconv::ExportedFunc & func2 )
static

Compares functions' DLL names.

Definition at line 210 of file exported_func.cpp.

Here is the call graph for this function:

◆ isTheSameFunc()

bool ExportedFunc::isTheSameFunc ( const peconv::ExportedFunc & func1,
const peconv::ExportedFunc & func2 )
static

Compares functions' names. If function is defined by an ordinal, compares ordinals. Includes the DLL name in the comparison.

Definition at line 225 of file exported_func.cpp.

Here is the call graph for this function:

◆ isTheSameFuncName()

bool ExportedFunc::isTheSameFuncName ( const peconv::ExportedFunc & func1,
const peconv::ExportedFunc & func2 )
static

Compares functions' names. If function is defined by an ordinal, compares ordinals. Does not include the DLL name in the comparison.

Definition at line 165 of file exported_func.cpp.

Here is the call graph for this function:

◆ isValid()

bool peconv::ExportedFunc::isValid ( ) const
inline

Definition at line 125 of file exported_func.h.

◆ nameToString()

std::string ExportedFunc::nameToString ( ) const

Gets a string representation of the variable. Short info about the function: only function name or ordinal (if the name is missing).

Definition at line 252 of file exported_func.cpp.

Here is the call graph for this function:

◆ operator<()

bool peconv::ExportedFunc::operator< ( const ExportedFunc & other) const
inline

Compare two functions with each other. Gives the priority to the named functions: if one of the compared functions is unnamed, the named one is treated as smaller. If both functions are unnamed, the function with the smaller ordinal is treated as smaller. Otherwise, the function with the shorter name is treated as smaller.

Definition at line 89 of file exported_func.h.

◆ toString()

std::string ExportedFunc::toString ( ) const

Gets a string representation of the variable. Full info about the function: library, name, ordinal.

Definition at line 236 of file exported_func.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ funcName

std::string peconv::ExportedFunc::funcName

Definition at line 71 of file exported_func.h.

◆ funcOrdinal

DWORD peconv::ExportedFunc::funcOrdinal

Definition at line 72 of file exported_func.h.

◆ isByOrdinal

bool peconv::ExportedFunc::isByOrdinal

Definition at line 73 of file exported_func.h.

◆ libName

std::string peconv::ExportedFunc::libName

Definition at line 70 of file exported_func.h.


The documentation for this class was generated from the following files: