Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 |
|
---|
4 | class UserProc;
|
---|
5 | class DllProc;
|
---|
6 |
|
---|
7 |
|
---|
8 | ///////////////////////
|
---|
9 | // リロケーション情報
|
---|
10 | ///////////////////////
|
---|
11 | class CReloc{
|
---|
12 | public:
|
---|
13 | char *buffer;
|
---|
14 | int length;
|
---|
15 | DWORD NowPageRVAToReloc;
|
---|
16 | DWORD NowCountAddrToReloc;
|
---|
17 |
|
---|
18 | CReloc();
|
---|
19 | ~CReloc();
|
---|
20 | void AllFree(void);
|
---|
21 | void copy(CReloc *por);
|
---|
22 |
|
---|
23 | private:
|
---|
24 | std::vector<DWORD> codeSectionAddresses;
|
---|
25 | public:
|
---|
26 | void AddSchedule_CodeSection(DWORD addr);
|
---|
27 |
|
---|
28 | private:
|
---|
29 | std::vector<DWORD> dataSectionAddresses;
|
---|
30 | public:
|
---|
31 | void AddSchedule_DataSection(DWORD addr);
|
---|
32 |
|
---|
33 | private:
|
---|
34 | void __add(DWORD addr);
|
---|
35 | public:
|
---|
36 | void ResetRelocBuffer(void);
|
---|
37 | };
|
---|
38 | extern CReloc *pobj_Reloc;
|
---|
39 |
|
---|
40 |
|
---|
41 | void NativeBuffer_StaticRelocation(int iStartPos,int iSize,int offset);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.