Page Menu
Home
desp's stash
Search
Configure Global Search
Log In
Files
F527321
PluginLoader.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
PluginLoader.h
View Options
#pragma once
#include
<windows.h>
#include
<stdio.h>
#include
<vector>
class
Plugin
{
public
:
DWORD
fileSize
;
WCHAR
fullpath
[
MAX_PATH
];
WCHAR
pluginName
[
MAX_PATH
];
};
#define PLUGIN_DIR "Plugins"
#define PLUGIN_SEARCH_STRING "*.dll"
#define PLUGIN_IMPREC_DIR "ImpRec_Plugins"
#define PLUGIN_IMPREC_WRAPPER_DLL "Imprec_Wrapper_DLL.dll"
typedef
wchar_t
*
(
__cdecl
*
def_ScyllaPluginNameW
)();
typedef
char
*
(
__cdecl
*
def_ScyllaPluginNameA
)();
typedef
DWORD
(
*
def_Imprec_Trace
)(
DWORD
hFileMap
,
DWORD
dwSizeMap
,
DWORD
dwTimeOut
,
DWORD
dwToTrace
,
DWORD
dwExactCall
);
class
PluginLoader
{
public
:
static
WCHAR
imprecWrapperDllPath
[
MAX_PATH
];
static
bool
findAllPlugins
();
static
std
::
vector
<
Plugin
>
&
getScyllaPluginList
();
static
std
::
vector
<
Plugin
>
&
getImprecPluginList
();
private
:
static
std
::
vector
<
Plugin
>
scyllaPluginList
;
static
std
::
vector
<
Plugin
>
imprecPluginList
;
static
WCHAR
dirSearchString
[
MAX_PATH
];
static
WCHAR
baseDirPath
[
MAX_PATH
];
static
bool
buildSearchString
();
static
bool
getScyllaPluginName
(
Plugin
*
pluginData
);
static
bool
isValidDllFile
(
const
WCHAR
*
fullpath
);
static
bool
searchForPlugin
(
std
::
vector
<
Plugin
>
&
newPluginList
,
const
WCHAR
*
searchPath
,
bool
isScyllaPlugin
);
static
bool
isValidImprecPlugin
(
const
WCHAR
*
fullpath
);
static
bool
buildSearchStringImprecPlugins
();
static
bool
fileExists
(
const
WCHAR
*
fileName
);
};
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, Jan 7, 1:53 PM (8 h, 5 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
59/f8/6e0af1812ed47d4c587827a50e89
Attached To
rSCY Scylla
Event Timeline
Log In to Comment