IUserInputString::GetImage method (photoacquire.h)

The GetImage method retrieves the default image used to initialize an edit control.

Syntax

HRESULT GetImage(
  [in]  UINT    nSize,
  [out] HBITMAP *phBitmap,
  [out] HICON   *phIcon
);

Parameters

[in] nSize

Integer containing the size of the image.

[out] phBitmap

Pointer to the handle that specifies the image bitmap.

[out] phIcon

Pointer to the handle that specifies the image icon.

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 a non-NULL pointer is expected.

Requirements

   
Target Platform Windows
Header photoacquire.h
Library PhotoAcquireUID.lib

See also

IUserInputString Interface