IPhotoAcquireSource::GetItemCount method (photoacquire.h)

The GetItemCount method retrieves the number of items found by the InitializeItemList method.

Syntax

HRESULT GetItemCount(
  [out] UINT *pnItemCount
);

Parameters

[out] pnItemCount

Pointer to an integer value containing the item count.

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.
E_POINTER
NULL was passed where a non-NULL pointer was expected.

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

IPhotoAcquireSource::InitializeItemList