2022-03-08 12:57:35 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ַ
|
|
|
|
|
|
typedef DWORD SendPacks();
|
|
|
|
|
|
static SendPacks* _SendPacks = (SendPacks*)0x1127EC0;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>Class this<69><73>ַ
|
|
|
|
|
|
typedef DWORD SendClass;
|
|
|
|
|
|
static SendClass* _SendClass = (SendClass*)0x1AEB6E4;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ַ
|
|
|
|
|
|
typedef int(__fastcall* SendPacksType)(DWORD thisc, int Seat, int Parm);
|
|
|
|
|
|
static SendPacksType _SendpacksType = (SendPacksType)0x1127D60;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> BYTE
|
|
|
|
|
|
typedef int(__fastcall* SendPacksByte)(DWORD thisc, int Seat, int Parm);
|
|
|
|
|
|
static SendPacksByte _SendPacksByte = (SendPacksByte)0x1128550;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WORD
|
|
|
|
|
|
typedef int(__fastcall* SendPacksWORD)(DWORD thisc, int Seat, int Parm);
|
|
|
|
|
|
static SendPacksWORD _SendPacksWord = (SendPacksWORD)0x1128580;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DWORD
|
|
|
|
|
|
typedef int(__fastcall* SendPacksDWORD)(DWORD thisc, int Seat, int Parm);
|
|
|
|
|
|
static SendPacksDWORD _SendPacksDWord = (SendPacksDWORD)0x11285B0;
|
|
|
|
|
|
|
2022-03-15 09:21:02 +08:00
|
|
|
|
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> char
|
|
|
|
|
|
typedef int(__fastcall* SendPacksChar)(DWORD thisc, int Seat, char* Parm,int Size);
|
|
|
|
|
|
static SendPacksChar _SendPacksChar = (SendPacksChar)0x11285E0;
|
2022-03-08 12:57:35 +08:00
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>Class this<69><73>ַ
|
|
|
|
|
|
typedef DWORD NoticeClass;
|
|
|
|
|
|
static NoticeClass* _NoticeClass = (NoticeClass*)0x1A5FB20;
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>CALL
|
|
|
|
|
|
typedef void(__fastcall* NoticeCall)(DWORD thisc, int Seat, char* a1, DWORD a2, DWORD a3, DWORD a4, DWORD a5, DWORD a6);
|
|
|
|
|
|
static NoticeCall _Noticecall = (NoticeCall)0x9536C0;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>CALL
|
|
|
|
|
|
typedef void(__fastcall* NoticeTCall)(DWORD thisc, DWORD Seat, DWORD a1, char* a2, DWORD a3);
|
|
|
|
|
|
static NoticeTCall _NoticeTcall = (NoticeTCall)0xE6E070;
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD>ƣ<EFBFBD>//TODO
|
|
|
|
|
|
typedef int(DrawTe)(DWORD thisc, int a2, int a3, int a4, int a5, int a6, __int64 a7, float a8, float a9, float a10, int a11, int a12);
|
|
|
|
|
|
//static NoticeTCall _NoticeTcall = (NoticeTCall)0xE6E070;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DNFTOOL
|
|
|
|
|
|
{
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><>ȡEXEʹ<45><CAB9>ͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
|
|
|
|
|
|
static int GetExeNutWrtNum(int Pos);
|
|
|
|
|
|
//дEXEʹ<45><CAB9>ͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
|
|
|
|
|
|
static void SetExeNutWrtNum(int Pos, int num);
|
|
|
|
|
|
//<2F><>ȡNutͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
|
|
|
|
|
|
static int GetNutArrNum(int Nutͷ<EFBFBD><EFBFBD>ַ, int Pos);
|
|
|
|
|
|
//дNutͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
|
|
|
|
|
|
static void SetNutArrNum(int Nutͷ<EFBFBD><EFBFBD>ַ, int Pos, int num);
|
|
|
|
|
|
//<2F><><EFBFBD>ڴ<EFBFBD>ƫ<EFBFBD>Ƶ<EFBFBD>ַ
|
2022-03-27 17:17:12 +08:00
|
|
|
|
static int GetHook(int Addr, std::string <EFBFBD><EFBFBD>ַ,int Type = 0);
|
2022-03-08 12:57:35 +08:00
|
|
|
|
//<2F><><EFBFBD>ܶ<EFBFBD>ȡ
|
|
|
|
|
|
static int DNFDeCode(int Address);
|
|
|
|
|
|
//<2F><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>
|
|
|
|
|
|
static void DNFEnCode(int AddreSs, int Data);
|
|
|
|
|
|
|
|
|
|
|
|
//<2F><>ȡװ<C8A1><D7B0>ƫ<EFBFBD>Ƶ<EFBFBD>ַ
|
|
|
|
|
|
static int GetEquAddr(int addr);
|
|
|
|
|
|
|
2022-04-22 02:16:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
2022-04-21 12:48:20 +08:00
|
|
|
|
//wchar_t* ת char*
|
2022-03-08 12:57:35 +08:00
|
|
|
|
static char* UnicodeToAnsi(const wchar_t* szStr, char* pResult, int maxLen);
|
2022-04-22 02:16:45 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//wchar_t* ת char* <09><><EFBFBD><EFBFBD>
|
|
|
|
|
|
static char* wchar_tTochar(wchar_t* wbuffer);
|
|
|
|
|
|
//char* ת wchar_t* <09><><EFBFBD><EFBFBD>
|
|
|
|
|
|
static wchar_t* charTowchar_t(char* wbuffer);
|
|
|
|
|
|
|
2022-04-21 12:48:20 +08:00
|
|
|
|
//wchar_t* ת string*
|
|
|
|
|
|
static void Wchar_tToString(std::string& szDst, wchar_t* wchar);
|
|
|
|
|
|
//char* ת wchar_t*
|
2022-03-08 12:57:35 +08:00
|
|
|
|
static wchar_t* AnsiToUnicode(const char* szStr, wchar_t* pResult, int maxLen);
|
2022-04-22 02:16:45 +08:00
|
|
|
|
//string ת wchar_t*
|
|
|
|
|
|
static const wchar_t* GetWC(const char* c);
|
|
|
|
|
|
|
2022-03-08 12:57:35 +08:00
|
|
|
|
|
|
|
|
|
|
//<2F><><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD> 0x10d
|
|
|
|
|
|
static void WindowsNotice(char* str, int type = 0x10d, int b = 0x0);
|
|
|
|
|
|
//GM<47><4D><EFBFBD><EFBFBD>
|
|
|
|
|
|
static void GMNotice(char* str, int type, int color);
|
2022-04-21 12:56:05 +08:00
|
|
|
|
//<2F><>ȡ<EFBFBD><C8A1>Ѷ<EFBFBD>ĵ<EFBFBD>IP
|
2022-04-21 12:48:20 +08:00
|
|
|
|
static std::string GetIP();
|
2022-03-08 12:57:35 +08:00
|
|
|
|
};
|
|
|
|
|
|
|