summaryrefslogtreecommitdiffstats
path: root/src/PEImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/PEImage.h')
-rw-r--r--src/PEImage.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/PEImage.h b/src/PEImage.h
index 4eac1dc..f3c5511 100644
--- a/src/PEImage.h
+++ b/src/PEImage.h
@@ -22,21 +22,21 @@ public:
PEImage(const char* iname = 0);
~PEImage();
- template<class P> P* DP(int off)
+ template<class P> P* DP(int off) const
{
return (P*) ((char*) dump_base + off);
}
- template<class P> P* DPV(int off, int size)
+ template<class P> P* DPV(int off, int size) const
{
if(off < 0 || off + size > dump_total_len)
return 0;
return (P*) ((char*) dump_base + off);
}
- template<class P> P* DPV(int off)
+ template<class P> P* DPV(int off) const
{
return DPV<P>(off, sizeof(P));
}
- template<class P> P* CVP(int off)
+ template<class P> P* CVP(int off) const
{
return DPV<P>(cv_base + off, sizeof(P));
}
@@ -77,6 +77,7 @@ public:
int countSections() const { return IMGHDR(FileHeader.NumberOfSections); }
int findSection(unsigned int off) const;
+ int findSymbol(const char* name, unsigned long& off) const;
const IMAGE_SECTION_HEADER& getSection(int s) const { return sec[s]; }
unsigned long long getImageBase() const { return IMGHDR(OptionalHeader.ImageBase); }