MAPI Property Data Types
4/8/2010
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 |
|
PT_APPTIME |
at |
double |
PT_SYSTIME |
ft |
|
PT_STRING8 |
lpszA |
LPSTR |
PT_BINARY |
bin |
|
PT_UNICODE |
lpszW |
LPWSTR |
PT_CLSID |
lpguid |
LPGUID |
PT_I8 or PT_LONGLONG |
li |
LARGE_INTEGER |
PT_MV_I2 |
MVi |
|
PT_MV_LONG |
MVl |
|
PT_MV_R4 |
MVflt |
|
PT_MV_DOUBLE |
MVdbl |
|
PT_MV_CURRENCY |
MVcur |
|
PT_MV_APPTIME |
MVat |
|
PT_MV_SYSTIME |
MVft |
|
PT_MV_BINARY |
MVbin |
|
PT_MV_STRING8 |
MVszA |
|
PT_MV_UNICODE |
MVszW |
|
PT_MV_CLSID |
MVguid |
|
PT_MV_I8 |
MVli |
|
PT_ERROR |
err |
|
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.
Since UNICODE is defined by default, using PT_UNICODE is preferred.
You can find the definitions for the MAPI property data types in the Mapidefs.h header file.