您的位置:首页 > 其它

Windows Data Types(VC VS .NET windows数据类型)

2013-08-23 15:19 387 查看



Windows Data Types

来自于MSDN6.0-platform SDK documents-windows API-reference

The data types supported by Microsoft® Windows® are used to define function return values, function and message parameters, and structure members. They define the size and meaning of these elements.

The following table contains the following types: character, integer, Boolean, pointer, and handle. The character, integer, and Boolean types are common to most C compilers. Most of the pointer-type names begin with a prefix ofP orLP.
Handles refer to a resource that has been loaded into memory.

TypeDefinition
ATOMAtom. For more information, see 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 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 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.
DWORD3232-bit unsigned integer.
DWORD6464-bit unsigned integer.
FLOATFloating-point variable.
HACCELHandle to an accelerator table.
HANDLEHandle to an object.
HBITMAPHandle to a bitmap.
HBRUSHHandle to a brush.
HCONVHandle to a dynamic data exchange (DDE) conversation.
HCONVLISTHandle to a DDE conversation list.
HCURSORHandle to a cursor.
HDCHandle to a device context (DC).
HDDEDATAHandle to DDE data.
HDESKHandle to a desktop.
HDROPHandle to an internal drop structure.
HDWPHandle to a deferred window position structure.
HENHMETAFILEHandle to an enhanced metafile.
HFILEHandle to a file opened by OpenFile, not
CreateFile.
HFONTHandle to a font.
HGDIOBJHandle to a GDI object.
HGLOBALHandle to a global memory block.
HHOOKHandle to a hook.
HICONHandle to an 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 menu.
HMETAFILEHandle to a metafile.
HMODULEHandle to a module.
HMONITORHandle to a display monitor.
HPALETTEHandle to a palette.
HPENHandle to a pen.
HRGNHandle to a region.
HRSRCHandle to a resource.
HSZHandle to a DDE string.
HWINSTAHandle to a window station.
HWNDHandle to a 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 Locales.
LCIDLocale identifier. For more information, see Locales.
LCTYPELocale information type. For a list, see 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, seeCharacter Sets Used By Fonts.
LPCTSTRAn LPCWSTR ifUNICODE is defined, anLPCSTR otherwise.
LPCVOIDPointer to a constant of any type.
LPCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters. For more information, seeCharacter 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, seeCharacter Sets Used By Fonts.
LPTSTRAn LPWSTR ifUNICODE is defined, anLPSTR otherwise.
LPVOIDPointer to any type.
LPWORDPointer to a WORD.
LPWSTRPointer to a null-terminated string of 16-bit Unicode characters. For more information, seeCharacter 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, seeCharacter Sets Used By Fonts.
PCTSTRA PCWSTR ifUNICODE is defined, aPCSTR otherwise.
PCWCHPointer to a constant
WCHAR.
PCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters. For more information, seeCharacter 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, seeCharacter Sets Used By Fonts.
PTBYTEPointer to a TBYTE.
PTCHARPointer to a TCHAR.
PTSTRA PWSTR ifUNICODE is defined, aPSTR 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, seeCharacter Sets Used By Fonts.
REGSAMSecurity access mask for registry key.
SC_HANDLEHandle to a service control manager database. For more information, seeSCM Handles.
SC_LOCKHandle to a service control manager database lock. For more information, seeSCM Handles.
SERVICE_STATUS_HANDLEHandle to a service status value. For more information, see 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 ifUNICODE is defined, aCHAR otherwise.
TCHARA WCHAR ifUNICODE is defined, aCHAR 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 Character Sets Used By Fonts.
WINAPICalling convention for system functions.
WORD16-bit unsigned integer.
WPARAMMessage parameter.
来自于MSDN6.0-platform SDK documents-windows API-reference

lpsz : long pointer string zero ,\0结尾的str
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: