IPhotoAcquireSource::GetItemAt method (photoacquire.h)

The GetItemAt method retrieves the IPhotoAcquireItem object at the given index in the list of items.

Syntax

HRESULT GetItemAt(
  [in]  UINT              nIndex,
  [out] IPhotoAcquireItem **ppPhotoAcquireItem
);

Parameters

[in] nIndex

Integer value containing the index.

[out] ppPhotoAcquireItem

Pointer to the address of an IPhotoAcquireItem object.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

Before calling this method, call InitializeItemList to initialize the item list.

Requirements

Requirement Value
Target Platform Windows
Header photoacquire.h
Library PhotoAcquireUID.lib

See also

IPhotoAcquireSource Interface