-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCommon.h
92 lines (79 loc) · 2.2 KB
/
Common.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#pragma once
#include "CMulUOP.h"
#define GETNONWHITESPACE( pStr ) while ( pStr[0] == ' ' || pStr[0] == '\t' ) pStr ++;
static int WM_RCONSOLEMESSAGE = WM_USER + 100;
//*****************
// Find Process
class CHWNDProcess
{
public:
HWND hwndProcess;
CWnd * pWnd;
};
BOOL CALLBACK FindUOClient(HWND hWnd, LPARAM lParam);
//*****************
//String Table Class
class CMsg : public CString
{
public :
CMsg(LPCTSTR pszFormatstr, bool bFormat = false,...);
};
class CFrmt : public CString
{
public:
CFrmt(LPCTSTR pszFormatstr, ...);
};
class CCmd : public CString
{
public:
CCmd(LPCTSTR pszFormatstr, bool bFormat = false, ...);
};
class CSpk : public CString
{
public:
CSpk(LPCTSTR pszFormatstr, bool bFormat = false, ...);
};
//*****************
// Misc functions
CString ErrorString(DWORD err);
CString Encrypt(CString csValue);
void CenterWindowEx(HWND h_wind);
CString LoadLang(LPCTSTR sLangID);
CString LoadCMD(LPCTSTR sCMDID);
CString GetSettingString(LPCTSTR sKey);
int GetSettingNum(LPCTSTR sKey);
CString GetDefaultString(LPCTSTR sKey);
int GetDefaultNum(LPCTSTR sKey);
void SetSettingString(LPCTSTR sKey, LPCTSTR sValue);
void SetSettingNum(LPCTSTR sKey, int iValue);
void SetDefaultString(LPCTSTR sKey, LPCTSTR sValue);
void SetDefaultNum(LPCTSTR sKey, int iValue);
void ClearSetting(LPCTSTR sKey);
CString GetMulPath(LPCTSTR sKey);
//void SetMulPath(LPCTSTR sKey, LPCTSTR sValue);
void ClearPtrArray(CPtrArray *pArray);
UINT SendToClient(LPVOID pParam);
bool SendToUO(LPCTSTR Cmd);
DWORD ScaleColor(WORD wColor);
UINT LoadUOPArtData(LPVOID pParam);
UINT LoadHues(LPVOID pParam);
void UnLoadUOPArtData();
void UnLoadHues();
UINT LoadBodyDef(LPVOID pParam);
void UnLoadBodyDef();
UINT LoadBodyConvert(LPVOID pParam);
void UnLoadBodyConvert();
UINT LoadRadarcol(LPVOID pParam);
UINT LoadTiledata(LPVOID pParam);
void DetectMapFormat();
__int64 HashFileName(CString csFile);
long ahextoi(CString csHex);
UINT isStrType(CString csString);
void Log(CString csData);
CString SQLStrip(CString csString);
CString GetEditString(CWnd &ceText);
int GetEditNum(CWnd &ceText);
void ClearDirectory(CString csPath);
DWORD GetColorRef(DWORD dwColRef);
void CreateDirectoryTree(CString csPath);
void DeleteDirectoryTree(CString csPath);