Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F229816
ConfigurationHolder.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
ConfigurationHolder.h
View Options
#pragma once
#include
<windows.h>
#include
<map>
#include
"Configuration.h"
enum
ConfigOption
{
USE_PE_HEADER_FROM_DISK
,
DEBUG_PRIVILEGE
,
CREATE_BACKUP
,
DLL_INJECTION_AUTO_UNLOAD
,
IAT_SECTION_NAME
,
UPDATE_HEADER_CHECKSUM
,
};
class
ConfigurationHolder
{
public
:
ConfigurationHolder
(
const
WCHAR
*
fileName
);
bool
loadConfiguration
();
bool
saveConfiguration
()
const
;
Configuration
&
operator
[](
ConfigOption
option
);
const
Configuration
&
operator
[](
ConfigOption
option
)
const
;
private
:
static
const
WCHAR
CONFIG_FILE_SECTION_NAME
[];
WCHAR
configPath
[
MAX_PATH
];
std
::
map
<
ConfigOption
,
Configuration
>
config
;
bool
buildConfigFilePath
(
const
WCHAR
*
fileName
);
bool
readStringFromConfigFile
(
Configuration
&
configObject
);
bool
readBooleanFromConfigFile
(
Configuration
&
configObject
);
bool
readNumericFromConfigFile
(
Configuration
&
configObject
,
int
nBase
);
bool
saveStringToConfigFile
(
const
Configuration
&
configObject
)
const
;
bool
saveBooleanToConfigFile
(
const
Configuration
&
configObject
)
const
;
bool
saveNumericToConfigFile
(
const
Configuration
&
configObject
,
int
nBase
)
const
;
bool
loadConfig
(
Configuration
&
configObject
);
bool
saveConfig
(
const
Configuration
&
configObject
)
const
;
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Mon, Apr 14, 5:44 PM (13 h, 25 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ef/f4/67ae49284d96d5bd0c50519b6c7e
Attached To
rSCY Scylla
Event Timeline
Log In to Comment