CSDN博客

img FantasiaX

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

发表于2004/3/31 11:20:00  5495人阅读

分类: C++语言 C语言 Windows开发

续表

INTint*int→INT32位有符号整数
INT_PTRint(_W64 int即__w64 int)*_W64 int→INT_PTR,_W64就是__w64,是为了解决32位与64位编译器的兼容性而设置的关键字用于指针运算
INT32signed int*signed int→INT3232位有符号整数
INT64signed __int648signed __int64→INT6464位有符号整数
LANGIDunsigned short2unsigned short→WORD→LANGID语言标识符
LCIDunsigned long4unsigned long→DWORD→LCIDLocale identifier.
LCTYPEunsigned long4unsigned long→DWORD→LCTYPELocale information type. 
LONGlong4long→LONG32位有符号整数
LONG_PTRlong4_W64 long→LONG_PTR用于指针运算
LONG32signed int*signed int→LONG3232位有符号整数
LONG64__int648__int64→LONG6464位有符号整数
LONGLONG__int648__int64→LONGLONG64位有符号整数
LPARAMlong4_W64 long→LONG_PTR→LPARAM消息的参数
LPBOOLint * int→BOOL, BOOL far *→LPBOOLBOOL类型的指针
LPBYTEunsigned char * unsigned char→BYTE,BYTE far *→LPBYTEBYTE类型的指针
LPCOLORREFunsigned long * unsigned long→WORD,DWORD *→LPCOLORREF颜色值的指针
LPCRITICAL_SECTIONRTL_CRITICAL_SECTION结构体指针 RTL_CRITICAL_SECTION *PRTL_CRITICAL_SECTION→,PRTL_CRITICAL_SECTION→LPCRITICAL_SECTIONCRITICAL_SECTION的指针
LPCSTR静态char * char→CHAR,CONST CHAR *→LPCSTR静态8位Windows字符(ANSI)无终结字符串指针
LPCTSTR静态wchar_t * wchar_t→WCHAR,CONST WCHAR *→LPCWSTR,LPCWSTR→LPCTSTR如果UNICODE已定义则为LPCWSTR,否则为LPCTSTR
LPCVOID静态void * CONST void far *→LPCVOID任何类型的静态指针
LPCWSTR静态wchar_t * wchar_t→WCHAR,CONST WCHAR *→LPCWSTR静态16位Windows字符(Unicode)无终结字符串指针
LPDWORDunsigned long * unsigned long→DWORD,DWORD far *→LPDWORDDWORD的指针
LPHANDLE指向句柄的指针 void *→HANDLE,HANDLE FAR *→LPHANDLEHANDLE的指针
LPINTint * int far *→LPINTINT的指针
LPLONGlong * long far *→LPLONGLONG的指针
LPSTRchar * char→CHAR,CHAR *→LPSTR8位Windows字符(ANSI)无终结字符串指针
LPTSTRwchar_t * wchar_t WCHAR,WCHAR *→LPWSTR,LPWSTR→LPTSTRAn LPWSTR if UNICODE is defined, an LPSTR otherwise.
LPVOIDvoid * void far *→LPVOID任何类型的指针
LPWORDunsigned short * unsigned short→WORD,WORD far *→LPWORDWORD的指针
LPWSTRwchar_t * wchar_t→WCHAR,WCHAR *→LPWSTR16位Windows字符(ANSI)无终结字符串指针
LRESULTlong4_W64 long→LONG_PTR→LRESULT有符号的消息处理结果
LUIDLUID结构  局部唯一标识符
PBOOLint * int→BOOL,BOOL near *→PBOOLBOOL的指针
PBOOLEANunsigned char * unsigned char→BYTE→BOOLEAN,BOOLEAN *→PBOOLEANBOOL的指针
PBYTEunsigned char * unsigned char→BYTE,BYTE near *→PBYTEBYTE的指针
PCHARchar * char→CHAR,CHAR *→PCHARCHAR的指针
PCRITICAL_SECTIONRTL_CRITICAL_SECTION结构体指针 RTL_CRITICAL_SECTION *→PRTL_CRITICAL_SECTION,PRTL_CRITICAL_SECTION→PCRITICAL_SECTIONCRITICAL_SECTION的指针
PCSTR静态char * char→CHAR,CONST CHAR *→PCSTR静态8位Windows字符(ANSI)无终结字符串指针
PCTSTR静态wchar_t * wchar_t→WCHAR,CONST WCHAR *→LPCWSTR,LPCWSTR→PCTSTR如果UNICODE已定义则为PCWSTR,否则为PCSTR
PCWCH静态wchar_t * wchar_t→WCHAR,CONST WCHAR *→PCWCHWCHAR的静态指针
PCWSTR静态wchar_t * wchar_t→WCHAR,CONST WCHAR *→PCWSTR静态16位Windows字符(Unicode)无终结字符串指针
PDWORDunsigned long * unsigned long→DWORD,DWORD near *→PDWORDDWORD的指针
PFLOATfloat * float→FLOAT,FLOAT *→PFLOATFLOAT的指针
PHANDLE指向句柄的指针 void *→HANDLE,HANDLE *→PHANDLEHANDLE的指针
PHKEY指向HKEY的指针 HKEY__ *→HKEY *→PHKEYHKEY的指针
PINTint * int near *→PINTINT的指针
PLCIDunsigned long * unsigned long→DWORD,DWORD near *→PDWORD→PLCIDLCID的指针
PLONGlong * long→LONG,LONG *→PLONGLONG的指针
PLUIDLUID结构体指针 LUID *→PLUIDLUID的指针

接下表

0 0

相关博文

我的热门文章

img
取 消
img