⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 allmyinclude.h

📁 让传奇3服务端支持动态域名的插件。VS2005的工程。这个是DBSER的插件。要和LOGINSER插件一起使用。
💻 H
字号:
#pragma once
#include "DBSer.h"
#define IPStruct_LEN	32
#define IP_LEN			15

void GetDomainNameAddr();
void DomainToIP();//域名转IP
void	GetClientIP();//获得客户连接IP
DWORD DetourGameEbx( DWORD targetCodeAddress, DWORD targetCodeLength, DWORD ourFunctionAddress );
DWORD DetourGame( DWORD targetCodeAddress, DWORD targetCodeLength, DWORD ourFunctionAddress );//需要自动还原代码为FALSE,否则为true
//插入代码并加入自己的代码获得指定值存入EBX
//--------------------插入地址------------------覆盖代码长度---------------自定义函数地址/名------代码指针------代码长度-----
DWORD DetourMyCode( DWORD targetCodeAddress, DWORD targetCodeLength, DWORD ourFunctionAddress ,BYTE* lpCode , DWORD CodeLength);
inline BOOL IsemptySrt(LPTSTR Str);//empty return true测试字符串是否为空
//改变指定窗口标题
inline void ChangeWindowTitle(HWND hwnd, LPTSTR DEF_Title,LPTSTR CG_Str );
//-------字 转换函数-----------------转换成功返回 TRUE 失败返回 FALSE
inline BOOL	WcharToChar( LPTSTR lpWchar, LPSTR lpStr );
inline BOOL CharToWchar(LPTSTR lpWchar, LPSTR lpStr);
///数字 字符串 转换成  DWORD
inline DWORD StringToDword( LPTSTR num_Str );

BOOL	HostToIP(CString	Name,CString*	HostIp);//解析域名到IP
BOOL	LocalHostToIP(CString*	HostIp);//获得本地ip
inline BOOL  IsPrivateIP( CString InComeIP);//验证是否是本地IP

void	CallWaitMutex();//调用等待互斥对象 必须在使用全局变量前 调用高函数
void	ReleaseExMutex();//释放  必须在使用完全局变量以后调用该函数

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -