CSDN博客

img FantasiaX

Windows数据类型探幽——千回百转你是谁?(3)

发表于2004/3/29 10:13:00  4103人阅读

续表

POINTER_32void * void *→POINTER_3232位指针(详解略)
POINTER_64void * void *→POINTER_6464位指针(详解略)
PSHORTshort * short→SHORT,SHORT *→PSHORTSHORT的指针
PSTRchar * char→CHAR,CHAR *→PSTR8位Windows字符(ANSI)无终结字符串指针
PTBYTEwchar_t * wchar_t→WCHAR,WCHAR *→PTBYTETBYTE的指针
PTCHARwchar_t * wchar_t→WCHAR,WCHAR *→PTCHARTCHAR的指针
PTSTRwchar_t * wchar_t→WCHAR,WCHAR *→LPWSTR→PTSTRPWSTR if UNICODE is defined, a PSTR otherwise.
PTBYTEwchar_t * wchar_t→WCHAR,WCHAR *→PTBYTETBYTE的指针
PTCHARwchar_t * wchar_t→WCHAR,WCHAR *→PTCHARTCHAR的指针
PTSTRwchar_t * wchar_t→WCHAR,WCHAR *→LPWSTR→PTSTRA PWSTR if UNICODE is defined, a PSTR otherwise.
PUCHARunsigned char * unsigned char→UCHAR,UCHAR *→PUCHARUCHAR的指针
PUINTunsigned int * unsigned int *→PUINT(呵呵,为什么不用UINT*来定义呢?)UINT的指针
PULONGunsigned long * unsigned long→ULONG,ULONG *→PULONGULONG的指针
PUSHORTunsigned short * unsigned short→USHORT,USHORT *→PUSHORTUSHORT的指针
PVOIDvoid * void *→PVOID任何类型的指针
PWCHARwchar_t * wchar_t→WCHAR,WCHAR *→PWCHARWCHAR的指针
PWORDunsigned short * unsigned short→WORD,WORD near *→PWORDWORD的指针
PWSTRwchar_t * wchar_t→WCHAR,WCHAR *→PWSTR16位Windows字符(Unicode)无终结字符串指针
REGSAMunsigned long unsigned long→DWORD→ACCESS_MASK→REGSAM注册表值的安全访问掩码
SC_HANDLESC_HANDLE__结构体指针 由DECLARE_HANDLE(name)宏定义……Handle to a service control manager database.
SC_LOCKvoid * void far *→LPVOID→SC_LOCKHandle to a service control manager database lock. 
SERVICE_STATUS_HANDLESERVICE_STATUS_HANDLE__结构体指针 由DECLARE_HANDLE(name)宏定义……Handle to a service status value. 
SHORTshort2short→SHORT短整数类型(16位)
SIZE_Tunsigned long4unsigned long→ULONG_PTR→SIZE_T指针可指向的最大字节数
SSIZE_Tlong _W64 long→LONG_PTR→SSIZE_T有符号SIZE_T.
TBYTEwchar_t2wchar_t→WCHAR,WCHAR→TBYTE如果UNICODE已定义则为WCHAR,否则为CHAR
TCHARwchar_t2wchar_t→WCHAR,WCHAR→TCHAR如果UNICODE已定义则为WCHAR,否则为CHAR
UCHARunsigned char1unsigned char→UCHAR无符号CHAR
UINTunsigned int*unsigned int→UINT无符号INT
UINT_PTRunsigned int*unsigned int→UINT_PTR无符号INT_PTR.
UINT32unsigned int2unsigned int→UINT32无符号INT32.
UINT64unsigned __int644unsigned __int64→UINT64无符号INT64.
ULONGunsigned long4unsigned long→ULONG无符号LONG.
ULONG_PTRunsigned long4unsigned long→ULONG_PTR无符号LONG_PTR.
ULONG32unsigned int2unsigned int→ULONG32无符号LONG32
ULONG64unsigned __int644unsigned __int64→ULONG64无符号LONG64
ULONGLONGunsigned __int644unsigned __int64→ULONGLONG64位无符号整数
UNSIGNED没查到,大家帮忙吧  无符号属性
USHORTunsigned short unsigned short→USHORT无符号SHORT类型
VOIDvoid void→VOID任何类型
WCHARwchar_t2wchar_t→WCHAR16位Unicode字符
WINAPI__stdcall调用__stdcall→WINAPI系统函数(API函数)调用约定
WORDunsigned short2unsigned short→WORD16位无符号整数
WPARAMunsigned int*unsigned int→UINT_PTR→WPARAM消息的参数

注:DECLARE_HANDLE宏的定义如下。

#ifdef STRICT
typedef void *HANDLE;
#define DECLARE_HANDLE(name) struct name##__ { int unused; }; /
typedef struct name##__ *name

#else
typedef PVOID HANDLE;
#define DECLARE_HANDLE(name) typedef HANDLE name
#endif

  在列表中,是按前半部分的宏定义而写的,请大家注意。

0 0

相关博文

我的热门文章

img
取 消
img