IPhotoAcquireSettings::GetOutputFilenameTemplate method (photoacquire.h)

The GetOutputFilenameTemplate method retrieves a format string (template) that specifies the format of file names.

Syntax

HRESULT GetOutputFilenameTemplate(
  [out] BSTR *pbstrTemplate
);

Parameters

[out] pbstrTemplate

Pointer to a string containing the format string.

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

Format strings contain a mix of path literals and tokens. A format string looks like the following:


$(MyPicturesFolder)\$(DateAcquired), $(EventName)\$(EventName) $(SequenceNumber).$(OriginalExtension)

Requirements

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

See also

IPhotoAcquireSettings Interface

SetOutputFilenameTemplate