mirror of
https://github.com/UzixLS/KernelEx.git
synced 2025-07-18 23:11:19 +03:00
74 lines
2.0 KiB
C++
Executable File
74 lines
2.0 KiB
C++
Executable File
/*
|
|
* KernelEx
|
|
* Copyright (C) 2009, Xeno86
|
|
*
|
|
* This file is part of KernelEx source code.
|
|
*
|
|
* KernelEx is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published
|
|
* by the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* KernelEx is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with GNU Make; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
*
|
|
*/
|
|
|
|
#ifndef __KEXLINKAGE_H
|
|
#define __KEXLINKAGE_H
|
|
|
|
#pragma warning(disable:4530) //exceptions within strings class which we don't use
|
|
#include <vector>
|
|
#pragma warning(default:4530)
|
|
#include "sstring.hpp"
|
|
#include "kexcoresdk.h"
|
|
|
|
using namespace std;
|
|
|
|
class KexLinkage
|
|
{
|
|
typedef void (*kexGetModuleSettings_t)(const char* module,
|
|
char* conf_name, DWORD* mod_flags);
|
|
typedef void (*kexSetModuleSettings_t)(const char* module,
|
|
const char* conf_name, DWORD mod_flags);
|
|
typedef void (*kexResetModuleSettings_t)(const char* module);
|
|
typedef unsigned long (*kexGetKEXVersion_t)(void);
|
|
typedef DWORD (*kexGetCoreCaps_t)(void);
|
|
|
|
public:
|
|
|
|
struct conf
|
|
{
|
|
conf(const char* n, const char* d) : name(n), desc(d) {}
|
|
sstring name;
|
|
sstring desc;
|
|
};
|
|
|
|
~KexLinkage();
|
|
bool IsReady();
|
|
|
|
static KexLinkage instance;
|
|
vector<conf> confs;
|
|
int default_index;
|
|
bool disable_extensions;
|
|
kexGetModuleSettings_t m_kexGetModuleSettings;
|
|
kexSetModuleSettings_t m_kexSetModuleSettings;
|
|
kexResetModuleSettings_t m_kexResetModuleSettings;
|
|
kexGetKEXVersion_t m_kexGetKEXVersion;
|
|
kexGetCoreCaps_t m_kexGetCoreCaps;
|
|
|
|
protected:
|
|
KexLinkage();
|
|
bool Prepare();
|
|
|
|
HMODULE hKernelEx;
|
|
bool m_ready;
|
|
};
|
|
|
|
#endif
|