Outlook Note

本文深入探讨了Outlook对象模型在COMAdd-ins中的应用,以及如何通过PIA或COM互操作层使用它。同时介绍了Explorer窗口、Inspector窗口的概念,以及AppointmentItem、MAPIFolder等关键组件的功能。此外,还详细解释了Windows Common Data Types和OLE Automation Data Types的基本知识。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

以Outlook object model or PIA为例

  1. COM Add-ins一般使用Outlook object model.
  2. 托管代码使用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;

 

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值