IPhotoAcquireSource::GetDeviceIcons method (photoacquire.h)

The GetDeviceIcons method retrieves the icons that are used to represent the device.

Syntax

HRESULT GetDeviceIcons(
  [in]  UINT  nSize,
  [out] HICON *phLargeIcon,
  [out] HICON *phSmallIcon
);

Parameters

[in] nSize

Integer value containing the size of the icon to retrieve.

[out] phLargeIcon

Specifies the large icon used for the device.

[out] phSmallIcon

Specifies the small icon used for the device.

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
A null pointer was passed where non-null was expected.

Requirements

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

See also

GetDeviceId

IPhotoAcquireSource Interface