2019-09-15 03:24:12 +08:00
|
|
|
#ifndef DLL_H
|
|
|
|
#define DLL_H
|
|
|
|
#include <iostream>
|
|
|
|
#include <windows.h>
|
|
|
|
|
|
|
|
class DLL
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
std::string fileName;
|
|
|
|
HMODULE handle;
|
|
|
|
|
2019-09-15 07:59:24 +08:00
|
|
|
FARPROC ModPreInitialize;
|
2019-09-15 03:24:12 +08:00
|
|
|
FARPROC ModInitialize;
|
|
|
|
FARPROC ModMajorVersion;
|
|
|
|
FARPROC ModMinorVersion;
|
|
|
|
|
|
|
|
// Callbacks
|
2019-09-22 01:12:00 +08:00
|
|
|
FARPROC HandleChat;
|
2019-10-06 03:59:20 +08:00
|
|
|
FARPROC HandleP2PRequest;
|
2019-10-14 19:55:20 +08:00
|
|
|
FARPROC HandleCheckInventoryFull;
|
2019-09-15 03:24:12 +08:00
|
|
|
|
|
|
|
DLL(std::string fileName);
|
|
|
|
HMODULE Load();
|
|
|
|
virtual ~DLL();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
private:
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DLL_H
|