Windows数据类型汇总

MSDN上摘录下来的,大三的时间宝贵,就不译了,先将就着看吧:P

Value             

Meaning

ATOMAtom. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_atoms">Atoms.
BOOLBoolean variable (should be TRUE or FALSE).
BOOLEANBoolean variable (should be TRUE or FALSE).
BYTEByte (8 bits).
CALLBACKCalling convention for callback functions.
CHAR8-bit Windows (ANSI) character. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
COLORREFRed, green, blue (RGB) color value (32 bits). See COLORREF for information on this type.
CONSTVariable whose value is to remain constant during execution.
CRITICAL_SECTIONCritical-section object. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_critical_section_objects">Critical Section Objects.
DWORD32-bit unsigned integer.
DWORD_PTRUnsigned long type for pointer precision. Use when casting a pointer to a long type to perform pointer arithmetic. (Also commonly used for general 32-bit parameters that have been extended to 64 bits in 64-bit Windows. )
DWORD3232-bit unsigned integer.
DWORD6464-bit unsigned integer.
FLOATFloating-point variable.
HACCELHandle to an tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_keyboard_accelerators">accelerator table.
HANDLEHandle to an object.
HBITMAPHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_bitmaps">bitmap.
HBRUSHHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_brushes">brush.
HCONVHandle to a dynamic data exchange (DDE) conversation.
HCONVLISTHandle to a DDE conversation list.
HCURSORHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_cursors">cursor.
HDCHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_device_contexts">device context (DC).
HDDEDATAHandle to DDE data.
HDESKHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_desktops">desktop.
HDROPHandle to an internal drop structure.
HDWPHandle to a deferred window position structure.
HENHMETAFILEHandle to an tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_metafiles">enhanced metafile.
HFILEHandle to a file opened by tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_openfile">OpenFile, not tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_createfile">CreateFile.
HFONTHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_fonts_and_text">font.
HGDIOBJHandle to a GDI object.
HGLOBALHandle to a global memory block.
HHOOKHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_hooks">hook.
HICONHandle to an tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_icons">icon.
HIMAGELISTHandle to an image list.
HIMCHandle to input context.
HINSTANCEHandle to an instance.
HKEYHandle to a registry key.
HKLInput locale identifier.
HLOCALHandle to a local memory block.
HMENUHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_menus">menu.
HMETAFILEHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_metafiles">metafile.
HMODULEHandle to a module. The value is the base address of the module.
HMONITORHandle to a display monitor.
HPALETTEHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_colors">palette.
HPENHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_pens">pen.
HRGNHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_regions">region.
HRSRCHandle to a resource.
HSZHandle to a DDE string.
HWINSTAHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_window_stations">window station.
HWNDHandle to a tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows">window.
INT32-bit signed integer.
INT_PTRSigned integral type for pointer precision. Use when casting a pointer to an integer to perform pointer arithmetic.
INT3232-bit signed integer.
INT6464-bit signed integer.
LANGIDLanguage identifier. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_locales">Locales.
LCIDLocale identifier. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_locales">Locales.
LCTYPELocale information type. For a list, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_locale_and_language_information">Locale and Language Information.
LONG32-bit signed integer.
LONG_PTRSigned long type for pointer precision. Use when casting a pointer to a long to perform pointer arithmetic.
LONG3232-bit signed integer.
LONG6464-bit signed integer.
LONGLONG64-bit signed integer.
LPARAMMessage parameter.
LPBOOLPointer to a BOOL.
LPBYTEPointer to a BYTE.
LPCOLORREFPointer to a COLORREF value.
LPCRITICAL_SECTIONPointer to a CRITICAL_SECTION.
LPCSTRPointer to a constant null-terminated string of 8-bit Windows (ANSI) characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
LPCTSTRAn LPCWSTR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, an LPCTSTR otherwise.
LPCVOIDPointer to a constant of any type.
LPCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
LPDWORDPointer to a DWORD.
LPHANDLEPointer to a HANDLE.
LPINTPointer to an INT.
LPLONGPointer to a LONG.
LPSTRPointer to a null-terminated string of 8-bit Windows (ANSI) characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
LPTSTRAn LPWSTR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, an LPSTR otherwise.
LPVOIDPointer to any type.
LPWORDPointer to a WORD.
LPWSTRPointer to a null-terminated string of 16-bit Unicode characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
LRESULTSigned result of message processing.
LUIDLocally unique identifier.
PBOOLPointer to a BOOL.
PBOOLEANPointer to a BOOL.
PBYTEPointer to a BYTE.
PCHARPointer to a CHAR.
PCRITICAL_SECTIONPointer to a CRITICAL_SECTION.
PCSTRPointer to a constant null-terminated string of 8-bit Windows (ANSI) characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
PCTSTRA PCWSTR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, a PCSTR otherwise.
PCWCHPointer to a constant WCHAR.
PCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
PDWORDPointer to a DWORD.
PFLOATPointer to a FLOAT.
PHANDLEPointer to a HANDLE.
PHKEYPointer to an HKEY.
PINTPointer to an INT.
PLCIDPointer to an LCID.
PLONGPointer to a LONG.
PLUIDPointer to a LUID.
POINTER_3232-bit pointer. On a 32-bit system, this is a native pointer. On a 64-bit system, this is a truncated 64-bit pointer.
POINTER_6464-bit pointer. On a 64-bit system, this is a native pointer. On a 32-bit system, this is a sign-extended 32-bit pointer.
PSHORTPointer to a SHORT.
PSTRPointer to a null-terminated string of 8-bit Windows (ANSI) characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
PTBYTEPointer to a TBYTE.
PTCHARPointer to a TCHAR.
PTSTRPWSTR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, a PSTR otherwise.
PTBYTEPointer to a TBYTE.
PTCHARPointer to a TCHAR.
PTSTRA PWSTR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, a PSTR otherwise.
PUCHARPointer to a UCHAR.
PUINTPointer to a UINT.
PULONGPointer to a ULONG.
PUSHORTPointer to a USHORT.
PVOIDPointer to any type.
PWCHARPointer to a WCHAR.
PWORDPointer to a WORD.
PWSTRPointer to a null-terminated string of 16-bit Unicode characters. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
REGSAMSecurity access mask for registry key.
SC_HANDLEHandle to a service control manager database. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_scm_handles">SCM Handles.
SC_LOCKHandle to a service control manager database lock. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_scm_handles">SCM Handles.
SERVICE_STATUS_HANDLEHandle to a service status value. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_scm_handles">SCM Handles.
SHORTShort integer (16 bits).
SIZE_TThe maximum number of bytes to which a pointer can point. Use for a count that must span the full range of a pointer.
SSIZE_ TSigned SIZE_T.
TBYTEA WCHAR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, a CHAR otherwise.
TCHARA WCHAR if tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_windows_data_types_for_strings">UNICODE is defined, a CHAR otherwise.
UCHARUnsigned CHAR.
UINTUnsigned INT.
UINT_PTRUnsigned INT_PTR.
UINT32Unsigned INT32.
UINT64Unsigned INT64.
ULONGUnsigned LONG.
ULONG_PTRUnsigned LONG_PTR.
ULONG32Unsigned LONG32.
ULONG64Unsigned LONG64.
ULONGLONG64-bit unsigned integer.
UNSIGNEDUnsigned attribute.
USHORTUnsigned SHORT.
VOIDAny type.
WCHAR16-bit Unicode character. For more information, see tabindex="0" errorurl="../common/badjump.htm" keywords="_win32_character_sets_used_by_fonts">Character Sets Used By Fonts.
WINAPICalling convention for system functions.
WORD16-bit unsigned integer.
WPARAMMessage parameter.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值