HrAddColumnsEx
The HrAddColumnsEx
function adds or moves columns to the beginning of an existing table.
Quick Info
Header
file: |
MAPIUTIL.H |
Implemented
by: |
MAPI |
Called by: |
Client
applications and service providers |
HRESULT HrAddColumnsEx(
LPMAPITABLE lptbl, |
|
LPSPropTagArray lpproptagColumnsNew, |
|
LPALLOCATEBUFFER lpAllocateBuffer, |
|
LPFREEBUFFER lpFreeBuffer, |
|
void (FAR * lpfnFilterColumns) (LPSPropTagArray ptaga) |
|
); |
|
Parameters
lptbl
[in] Pointer
to the MAPI table affected.
lpproptagColumnsNew
[in] Pointer
to an SPropTagArray
lpAllocateBuffer
[in] Pointer
to the MAPIAllocateBuffer
lpFreeBuffer
[in] Pointer
to the MAPIFreeBuffer
lpfnFilterColumns
[in] Pointer
to a callback function furnished by the caller. If the lpfnFilterColumns
parameter is set to NULL, no callback is made.
ptaga
(Input
parameter to the callback function pointed to by lpfnFilterColumns)
Pointer to an SPropTagArray
Return Values
S_OK
The call
succeeded and the specified columns were moved or added.
Remarks
The HrAddColumnsEx
function allows the caller to furnish a callback function to filter the
original property tags. For example, the caller might want to convert strings
from property type PT_UNICODE to PT_STRING8. HrAddColumnsEx first adds
or moves the specified columns, then calls the callback function if one is
furnished, and finally calls IMAPITable::SetColumns
The
properties passed to HrAddColumnsEx using the lpproptagColumnsNew
parameter become the first properties listed on subsequent calls to the IMAPITable::QueryRows
The lpAllocateBuffer
and lpFreeBuffer input parameters point to the MAPIAllocateBuffer
See Also
IMAPITable::QueryColumns