HrAddColumns

适用于:Outlook 2013 | Outlook 2016

向现有表的开头添加或移动列。

属性
标头文件:
mapiutil.h
实现者:
MAPI
调用者:
客户端应用程序和服务提供商。
HRESULT HrAddColumns(
  LPMAPITABLE lptbl,
  LPSPropTagArray lpproptagColumnsNew,
  LPALLOCATEBUFFER lpAllocateBuffer,
  LPFREEBUFFER lpFreeBuffer
);

参数

lptbl

[in]指向受影响的 MAPI 表的指针。

lpproptagColumnsNew

[in]指向 SPropTagArray 结构的指针,该结构包含要添加或移动到表开头的属性的属性标记数组。

lpAllocateBuffer

[in]指向 MAPIAllocateBuffer 函数的 指针。 用于分配内存。

lpFreeBuffer

[in]指向 MAPIFreeBuffer 函数的 指针。 用于释放内存。

返回值

S_OK

调用成功,并且指定的列已移动或添加。

备注

HrAddColumns 函数等效于使用将 lpfnFilterColumns 设置为 NULL 的 HrAddColumnsEx

另请参阅

HrAddColumnsEx

MAPIAllocateBuffer

MAPIFreeBuffer

SPropTagArray