-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwtypedef.h
94 lines (85 loc) · 2.53 KB
/
wtypedef.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
93
#ifndef WIN32
#ifndef _SINFOR_WTYPE_HEADER_2005_10_08_BY_WINDOG
#define _SINFOR_WTYPE_HEADER_2005_10_08_BY_WINDOG
typedef unsigned long DWORD;
typedef unsigned long ULONG;
typedef unsigned char UCHAR;
typedef unsigned short USHORT;
typedef unsigned short WORD;
typedef void* HANDLE;
typedef unsigned int UINT;
typedef void* PVOID;
typedef unsigned char BOOLEAN;
typedef void VOID;
typedef unsigned int* PULONG;
typedef UCHAR* PUCHAR;
typedef long LONG;
typedef DWORD ADAPTER_HANDLE;
typedef char CHAR;
typedef unsigned char BYTE;
typedef long BOOL;
typedef unsigned long LRESULT;
typedef long HRESULT;
typedef char TCHAR;
typedef unsigned char _TUCHAR;
typedef const TCHAR* LPCTSTR;
typedef TCHAR* LPTSTR;
typedef CHAR* LPSTR;
typedef const CHAR* LPCSTR;
typedef int SOCKET;
typedef unsigned long netip_t; //网络字节序的ip
typedef unsigned long hostip_t; //主机字节序的ip
typedef unsigned short netport_t; //网络字节序的port
typedef unsigned short hostport_t; //主机字节序的port
typedef unsigned char byte_t;
typedef byte_t byte;
typedef float FLOAT;
typedef FLOAT *PFLOAT;
typedef BOOL *PBOOL;
typedef BOOL *LPBOOL;
typedef BYTE *PBYTE;
typedef BYTE *LPBYTE;
typedef int *PINT;
typedef int *LPINT;
typedef WORD *PWORD;
typedef WORD *LPWORD;
typedef long *LPLONG;
typedef DWORD *PDWORD;
typedef DWORD *LPDWORD;
typedef void *LPVOID;
typedef const void *LPCVOID;
typedef int INT;
typedef unsigned int *PUINT;
typedef long LONG_PTR;
typedef unsigned long ULONG_PTR;
typedef unsigned char u_char;
typedef unsigned short u_short;
typedef unsigned int u_int;
typedef unsigned long u_long;
typedef u_short n_short; /* short as received from the net */
typedef u_long n_long; /* long as received from the net */
typedef u_long n_time; /* ms since 00:00 GMT, byte rev */
#define IN
#define OUT
#define TRUE 1
#define FALSE 0
#define WPARAM DWORD
#define LPARAM DWORD
#define AFXAPI
#define PASCAL
#define AFX_CDECL
#define FASTCALL
#define AFX_STATIC_DATA
#define AFX_COMDAT
#define AFX_DATADEF
#define _AFX_INLINE
#define AFX_INLINE inline
#define DWORD_PTR DWORD
#define HIWORD(l) ((WORD)((DWORD_PTR)(l) >> 16))
#define LOWORD(l) ((WORD)((DWORD_PTR)(l) & 0xffff))
#define MAKEWORD(low,high) (((unsigned short)((unsigned char)low))|(((unsigned short)((unsigned char)high))<<8))
#define ASSERT_VALID(str...) void(0)
#endif
#else
typedef int socklen_t;
#endif //#ifndef PLAT_WIN