以Outlook object model or PIA为例
- COM Add-ins一般使用Outlook object model.
- 托管代码使用PIA或者通过COM interoperability layer使用outlook object model.
Explorer:
Represents the window in which the contents of a folder are displayed.
Inspector:
Represents the window in which an Outlook item is displayed.
AppointmentItem:
Represents an appointment in the Calendar folder. AnAppointmentItem object can represent a meeting, a one-time appointment, or a recurring appointment or meeting.
MAPIFolder:
Folders within the Outlook data store can be typed; for example, the Calendar folder will only containAppointmentItem objects and the Contacts folder will only containContactItem andDistListItem objects.
Windows Common Data Types:
//A BSTR is a pointer to a null-terminated character string in which the string length is stored with the string.
typedef WCHAR* BSTR;
//The LPSTR type and its aliasPSTR specify a pointer to an array of 8-bit characters, which MAY be terminated by a null character.
typedef char* PSTR, *LPSTR;
//The LPWSTR type is a 32-bit pointer to a string of 16-bitUnicode characters, which MAY be null-terminated.
typedef wchar_t* LPWSTR, *PWSTR;
//An LPCSTR is a 32-bit pointer to a constant null-terminated string of 8-bit Windows (ANSI) characters.
typedef const char* LPCSTR;
OLE Automation Data Types:
typedef [string] wchar_t* LPOLESTR;