IUserInputString::GetMaxLength method (photoacquire.h)

The GetMaxLength method retrieves the maximum string length the user interface (UI) should allow.

Syntax

HRESULT GetMaxLength(
  [out] UINT *pcchMaxLength
);

Parameters

[out] pcchMaxLength

Pointer to the size of the maximum string length in characters.

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

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

See also

IUserInputString Interface