MAPI Property Data Types
These constants represent the possible types of property values. These are specified in the Value member of the SPropValue structure.
Property type | Value | Data type |
---|---|---|
PT_I2 or PT_SHORT | i | short int |
PT_I4 or PT_LONG (signed) | l | LONG |
PT_I4 or PT_LONG (unsigned) | ul | ULONG |
PT_R4 or PT_FLOAT | flt | float |
PT_R8 or PT_DOUBLE | dbl | double |
PT_BOOLEAN | b | unsigned short int |
PT_CURRENCY | cur | CURRENCY |
PT_APPTIME | at | double |
PT_SYSTIME | ft | FILETIME |
PT_STRING8 | lpszA | LPSTR |
PT_BINARY | bin | SBinary |
PT_UNICODE | lpszW | LPWSTR |
PT_CLSID | lpguid | LPGUID |
PT_I8 or PT_LONGLONG | li | LARGE_INTEGER |
PT_MV_I2 | MVi | SShortArray |
PT_MV_LONG | MVl | SLongArray |
PT_MV_R4 | MVflt | SRealArray |
PT_MV_DOUBLE | MVdbl | SDoubleArray |
PT_MV_CURRENCY | MVcur | SCurrencyArray |
PT_MV_APPTIME | MVat | SAppTimeArray |
PT_MV_SYSTIME | MVft | SDateTimeArray |
PT_MV_BINARY | MVbin | SBinaryArray |
PT_MV_STRING8 | MVszA | SLPSTRArray |
PT_MV_UNICODE | MVszW | SWStringArray |
PT_MV_CLSID | MVguid | SGuidArray |
PT_MV_I8 | MVli | SLargeIntegerArray |
PT_ERROR | err | SCODE |
PT_NULL or PT_OBJECT | x | LONG |
Remarks
MAPI properties with the PT_TSTRING data type can be mapped to either PT_STRING8, or PT_UNICODE if UINCODE is defined.
Note Since UNICODE is defined by default, using PT_UNICODE is preferred.
See Also
MAPI Constants | SPropValue | MAPI Properties
Send Feedback on this topic to the authors