Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F383883
TreeImportExport.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
TreeImportExport.h
View Options
#pragma once
#include
<windows.h>
#include
"ProcessLister.h"
#include
"Thunks.h"
#include
<tinyxml.h>
class
TreeImportExport
{
public
:
TreeImportExport
(
const
WCHAR
*
targetXmlFile
);
bool
exportTreeList
(
const
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
,
const
Process
*
process
,
DWORD_PTR
addressOEP
,
DWORD_PTR
addressIAT
,
DWORD
sizeIAT
)
;
bool
importTreeList
(
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
,
DWORD_PTR
*
addressOEP
,
DWORD_PTR
*
addressIAT
,
DWORD
*
sizeIAT
);
private
:
WCHAR
xmlPath
[
MAX_PATH
];
char
xmlStringBuffer
[
MAX_PATH
];
void
setTargetInformation
(
TiXmlElement
*
rootElement
,
const
Process
*
process
,
DWORD_PTR
addressOEP
,
DWORD_PTR
addressIAT
,
DWORD
sizeIAT
);
void
addModuleListToRootElement
(
TiXmlElement
*
rootElement
,
const
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
);
void
parseAllElementModules
(
TiXmlElement
*
targetElement
,
std
::
map
<
DWORD_PTR
,
ImportModuleThunk
>
&
moduleList
);
void
parseAllElementImports
(
TiXmlElement
*
moduleElement
,
ImportModuleThunk
*
importModuleThunk
);
TiXmlElement
*
getModuleXmlElement
(
const
ImportModuleThunk
*
importModuleThunk
);
TiXmlElement
*
getImportXmlElement
(
const
ImportThunk
*
importThunk
);
bool
saveXmlToFile
(
const
TiXmlDocument
&
doc
,
const
WCHAR
*
xmlFilePath
);
bool
readXmlFile
(
TiXmlDocument
&
doc
,
const
WCHAR
*
xmlFilePath
);
void
ConvertBoolToString
(
const
bool
boolValue
);
void
ConvertWordToString
(
const
WORD
dwValue
);
void
ConvertDwordPtrToString
(
const
DWORD_PTR
dwValue
);
DWORD_PTR
ConvertStringToDwordPtr
(
const
char
*
strValue
);
WORD
ConvertStringToWord
(
const
char
*
strValue
);
bool
ConvertStringToBool
(
const
char
*
strValue
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Sep 5, 3:56 PM (8 h, 8 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f3/99/6cc9871e14ae6441605f0d3f289e
Attached To
rSCY Scylla
Event Timeline
Log In to Comment