Page MenuHomedesp's stash

PluginLoader.h
No OneTemporary

PluginLoader.h

#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"
typedef wchar_t * (__cdecl * def_ScyllaPluginNameW)();
typedef char * (__cdecl * def_ScyllaPluginNameA)();
class PluginLoader {
public:
static bool findAllPlugins();
static std::vector<Plugin> & getPluginList();
private:
static std::vector<Plugin> pluginList;
static WCHAR dirSearchString[MAX_PATH];
static WCHAR baseDirPath[MAX_PATH];
static bool buildSearchString();
static bool getPluginName(Plugin * pluginData);
static bool isValidDllFile( const WCHAR * fullpath );
};

File Metadata

Mime Type
text/x-c++
Expires
Mon, Jun 8, 2:01 PM (20 h, 39 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
25/22/0f9c4bccedb46e92309d37b4961b

Event Timeline