# TCL_SearchPictureInfoByIndex

## Definition

  `#include <twl/tcl.h>`

      TCLResult TCL_SearchPictureInfoByIndex( const TCLAccessor* pAccessor ,
                                              const TCLPictureInfo** ppPicInfo ,
                                              const TCLSearchObject* pSearchObj ,
                                              int index );

## Arguments

pAccessor | Accessor
ppPicInfo | Pointer to where search information is stored
pSearchObj | Search object
index | Index of photo information to get from photos that match the search conditions

## Return Values

Processing result

## Description

Gets information in the order defined by the index argument from photos that match the search conditions.

If the returned value is not `TCL_RESULT_SUCCESS`, the retrieved information is unreliable.

Behavior is undefined if a function such as `TCL_EncodeAndWritePicture`, `TCL_SortTable`, or `TCL_DeletePicture` changes the number or order of photos being managed during a search.

The accessor must be initialized by the `TCL_LoadTable` or `TCL_CreateTable` function.

## See Also

`TCL_InitSearchObject`

## Revision History

2009/03/23 Added a condition when behavior would be undefined.
2009/03/04 Fixed typos.
2008/10/07 Initial version.

CONFIDENTIAL