Partager via


IFreeBusyData::EnumBlocks

Gets an interface that enumerates free/busy blocks of data for a user within a specified time range.

Quick Info

See IFreeBusyData.

HRESULT EnumBlocks( 
     IEnumFBBlock **ppenumfb,  
     FILETIME ftmStart, 
     FILETIME ftmEnd 
);

Parameters

  • ppenumfb
    [out] An interface to enumerate free/busy blocks.
  • ftmStart
    [in] The start time for the enumeration. It is expressed in FILETIME.
  • ftmEnd
    [in] The end time for the enumeration. It is expressed in FILETIME.

Return Values

S_OK if the call succeeded; otherwise, an error code.

Remarks

This method is used to indicate the time range of calendar items for which to retrieve details. The values of ftmStart and ftmEnd are cached and returned in a subsequent call of IFreeBusyData::GetFBPublishRange.

A free/busy provider can also subsequently use the returned IEnumFBBlock interface to access the enumeration.

See also

IEnumFBBlock
IFreeBusyData::GetFBPublishRange
IFreeBusyData::SetFBRange
How to: Use Relative Time to Access Free/Busy Data