四极管 Windows CE 5.0 数据类型大全
来源:互联网 发布:gtv网络棋牌频道如何看 编辑:程序博客网 时间:2024/05/21 18:45
摘录自<Platform Builder for Microsoft Windows CE 5.0 Help>,位于"Windows CE Features > Shell and User Interface > Graphics, Windowing and Events > GWES Reference > Windows Reference"
The data types supported by Microsoft® Windows® CE 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 of P or LP. Handles refer to a resource that has been loaded into memory.
Data Type | Description | ATOMAtom. For more information, see Using 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.COLORREFRed, green, blue (RGB) color value (32 bits). For more information, see COLORREF.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.HCONVNot supported.HCONVLISTNot supported.HCURSORHandle to a cursor.HDCHandle to a device context (DC).HDDEDATANot supported.HDESKNot supported.HDROPHandle to an internal drop structure.HDWPHandle to a deferred window position structure.HENHMETAFILENot supported.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.HMETAFILENot supported.HMODULEHandle to a module. The value is the base address of the 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 Locale Identifiers.LCIDLocale identifier. For more information, see Locale Identifiers.LCTYPELocale information type. For more information, see LCTYPE Constants.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.LPCTSTRAn LPCWSTR because Windows CE only uses Unicode.LPCVOIDPointer to a constant of any type.LPCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters.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.LPTSTRAn LPWSTR because Windows CE only uses Unicode.LPVOIDPointer to any type.LPWORDPointer to a WORD.LPWSTRPointer to a null-terminated string of 16-bit Unicode characters.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.PCTSTRA PCWSTR because Windows CE only uses Unicode.PCWCHPointer to a constant WCHAR.PCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters.PCWSTRPointer to a constant null-terminated string of 16-bit Unicode characters.PDWORDPointer to a DWORD.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.POINTER_6464-bit pointer. This is a sign-extended 32-bit pointer.PSHORTPointer to a SHORT.PSTRPointer to a null-terminated string of 8-bit Windows (ANSI) characters.PTBYTEPointer to a TBYTE.PTCHARPointer to a TCHAR.PTSTRA PWSTR because Windows CE only uses Unicode.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.REGSAMNot supported.SC_HANDLEHandle to a service control manager database.SC_LOCKHandle to a service control manager database lock.SERVICE_STATUS_HANDLEHandle to a service status value.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 because Windows CE only uses Unicode.TCHARA WCHAR because Windows CE only uses Unicode.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.WINAPICalling convention for system functions.WORD16-bit unsigned integer.WPARAMMessage parameter.