📄 windows data type.txt
字号:
│UINT │unsigned int │* │unsigned int→UINT │无符号INT │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│UINT_PTR │unsigned int │* │unsigned int→UINT_PTR │无符号INT_PTR. │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│UINT32 │unsigned int │2 │unsigned int→UINT32 │无符号INT32. │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│UINT64 │unsigned __int64 │4 │unsigned __int64→UINT64 │无符号INT64. │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│ULONG │unsigned long │4 │unsigned long→ULONG │无符号LONG. │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│ULONG_PTR │unsigned long │4 │unsigned long→ULONG_PTR │无符号LONG_PTR. │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│ULONG32 │unsigned int │2 │unsigned int→ULONG32 │无符号LONG32 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│ULONG64 │unsigned __int64 │4 │unsigned __int64→ULONG64 │无符号LONG64 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│ULONGLONG │unsigned __int64 │4 │unsigned __int64→ULONGLONG │64位无符号整数 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│UNSIGNED │没查到,大家帮忙吧 │ │ │无符号属性 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│USHORT │unsigned short │ │unsigned short→USHORT │无符号SHORT类型 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│VOID │void │ │void→VOID │任何类型 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│WCHAR │wchar_t │2 │wchar_t→WCHAR │16位Unicode字符 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│WINAPI │__stdcall │调用 │__stdcall→WINAPI │系统函数(API函数)调用约定 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│WORD │unsigned short │2 │unsigned short→WORD │16位无符号整数 │
├─────────┼──────────┼───┼──────────────┼────────────────┤
│WPARAM │unsigned 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
在列表中,是按前半部分的宏定义而写的,请大家注意。
最后这张表是Visual C++ 7.1编译器支持的数据类型,也就是Windows各种数据类型的“根源”了。
┌───────┬────────────────┬───┬──────────────────────┐
│数据类型名称 │别名 │字节数│取值范围 │
├───────┼────────────────┼───┼──────────────────────┤
│int │signed,signed int │* │由操作系统决定,即与操作系统的"字长"有关 │
├───────┼────────────────┼───┼──────────────────────┤
│unsigned int │unsigned │* │由操作系统决定,即与操作系统的"字长"有关 │
├───────┼────────────────┼───┼──────────────────────┤
│__int8 │char,signed char │1 │–128 到 127 │
├───────┼────────────────┼───┼──────────────────────┤
│__int16 │short,short int,signed short int│2 │–32,768 到 32,767 │
├───────┼────────────────┼───┼──────────────────────┤
│__int32 │signed,signed int │4 │–2,147,483,648 到 2,147,483,647 │
├───────┼────────────────┼───┼──────────────────────┤
│__int64 │无 │8 │–9,223,372,036,854,775,808 到 │
│ │ │ │9,223,372,036,854,775,807 │
├───────┼────────────────┼───┼──────────────────────┤
│bool │无 │1 │false 或 true │
├───────┼────────────────┼───┼──────────────────────┤
│char │signed char │1 │–128 到 127 │
├───────┼────────────────┼───┼──────────────────────┤
│unsigned char │无 │1 │0 到 255 │
├───────┼────────────────┼───┼──────────────────────┤
│short │short int,signed short int │2 │–32,768 到 32,767 │
├───────┼────────────────┼───┼──────────────────────┤
│unsigned short│unsigned short int │2 │0 到 65,535 │
├───────┼────────────────┼───┼──────────────────────┤
│long │long int,signed long int │4 │–2,147,483,648 到 2,147,483,647 │
├───────┼────────────────┼───┼──────────────────────┤
│long long │none (but equivalent to __int64)│8 │–9,223,372,036,854,775,808 到 │
│ │ │ │9,223,372,036,854,775,807 │
├───────┼────────────────┼───┼──────────────────────┤
│unsigned long │unsigned long int │4 │0 到 4,294,967,295 │
├───────┼────────────────┼───┼──────────────────────┤
│enum │无 │* │由操作系统决定,即与操作系统的"字长"有关 │
├───────┼────────────────┼───┼──────────────────────┤
│float │无 │4 │3.4E +/- 38 (7 digits) │
├───────┼────────────────┼───┼──────────────────────┤
│double │无 │8 │1.7E +/- 308 (15 digits) │
├───────┼────────────────┼───┼──────────────────────┤
│long double │无 │8 │1.7E +/- 308 (15 digits) │
├───────┼────────────────┼───┼──────────────────────┤
│wchar_t │__wchar_t │2 │0 到 65,535 │
└───────┴────────────────┴───┴──────────────────────┘
完
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -