HrQueryAllRows
The HrQueryAllRows
function retrieves all rows of a table.
Quick Info
Header
file: |
MAPIUTIL.H |
Implemented
by: |
MAPI |
Called by: |
Client
applications and service providers |
HRESULT HrQueryAllRows(
LPMAPITABLE ptable,
|
|
LPSPropTagArray ptaga, |
|
LPSRestriction pres, |
|
LPSSortOrderSet psos, |
|
LONG crowsMax,
|
|
LPSRowSet FAR * pprows |
|
); |
|
Parameters
ptable
[in] Pointer
to the MAPI table from which rows are retrieved.
ptaga
[in] Pointer
to an SPropTagArray
pres
[in] Pointer
to an SRestriction
psos
[in] Pointer
to an SSortOrderSet
crowsMax
[in] Maximum
number of rows to be retrieved. If the value of the crowsMax parameter
is zero, no limit on the number of rows retrieved is set.
pprows
[out] Pointer
to the returned SRowSet
Return Values
S_OK
The call
retrieved the expected rows of a table.
MAPI_E_TABLE_TOO_BIG
The number of
rows in the table is larger than the number passed for the crowsMax
parameter.
Remarks
When querying
all rows of a table, a client application or service provider should call HrQueryAllRows
instead of the IMAPITable::QueryRows
See Also
IMAPITable
: IUnknown