extracted GetResourceDirectory and made it and GetNTHeaders public
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4617 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
668e245a5d
commit
eebbf93155
2 changed files with 61 additions and 32 deletions
|
@ -96,6 +96,7 @@ typedef struct _MY_IMAGE_RESOURCE_DIRECTORY_ENTRY {
|
|||
|
||||
#include <stdexcept>
|
||||
|
||||
// classes
|
||||
class CResourceDirectory;
|
||||
class CResourceDirectoryEntry;
|
||||
class CResourceDataEntry;
|
||||
|
@ -122,6 +123,17 @@ public:
|
|||
bool AddExtraVirtualSize2PESection(const char* pszSectionName, int addsize);
|
||||
DWORD Save(BYTE* pbBuf, DWORD &dwSize);
|
||||
|
||||
// utitlity functions
|
||||
static PIMAGE_NT_HEADERS GetNTHeaders(BYTE* pbPE);
|
||||
|
||||
static PRESOURCE_DIRECTORY GetResourceDirectory(
|
||||
BYTE* pbPE,
|
||||
DWORD dwSize,
|
||||
PIMAGE_NT_HEADERS ntHeaders,
|
||||
DWORD *pdwResSecVA = NULL,
|
||||
DWORD *pdwSectionIndex = NULL
|
||||
);
|
||||
|
||||
private:
|
||||
BYTE* m_pbPE;
|
||||
int m_iSize;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue