forked from qiutianshuchangsha/client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNL_QQwry.h
65 lines (58 loc) · 980 Bytes
/
NL_QQwry.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
#pragma once
#define MAXBUF 50
typedef struct _tagEndInfo
{
BYTE b0;
BYTE b1;
BYTE b2;
BYTE b3;
BYTE buf[MAXBUF];
BYTE bMode;
int offset1;
int offset2;
}EndInfo,PEndInfo;
typedef struct _tagIPOFF
{
BYTE b0;
BYTE b1;
BYTE b2;
BYTE b3;
BYTE off1;
BYTE off2;
BYTE off3;
}IPOFF,*PIPOFF;
typedef struct _tagBE
{
int uBOff;
int uEOff;
}BE,*PBE;
class IPwry
{
public:
DWORD m_dwLastIP;
CString IP2Add(CString szIP);
CString GetCountryLocal(int index);
DWORD GetSIP(int index);
DWORD IP2DWORD(CString szIP);
int GetIndex(CString szIP);
void SaveToFile();
CString GetStr(void);
CString GetCountryLocal(BYTE bMode,int ioffset);
CString GetStr(int ioffset);
int GetRecordCount(void);
int m_i;
int GetStartIPInfo(int iIndex);
CString m_buf;
CString Test(void);
bool GetBE(void);
bool OpenQQwry(CString szFileName);
void CloseQQwry(void);
BE m_be;
IPOFF m_ipoff;
EndInfo m_ei;
IPwry(void);
~IPwry(void);
private:
bool m_bOpen;
CFile m_file;
};