3.2.4.2.30.4 CopyTemplate (Opnum 20)

The CopyTemplate method copies the properties of the specified template to this template.

 [id(FSRM_DISPID_FILESCREEN_TEMPLATE | 0x01)] HRESULT CopyTemplate(
   [in] BSTR fileScreenTemplateName
 );

fileScreenTemplateName: Contains the name of the file screen template to copy from.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80045301

FSRM_E_NOT_FOUND

The specified template could not be found.

0x80045308

FSRM_E_INVALID_NAME

The name supplied is not valid.

0x8004530D

FSRM_E_OUT_OF_RANGE

The content of the name parameter exceeds the maximum length of 4,000 characters.

The server MUST copy the properties of fileScreenTemplateName to this file screen template or return a nonzero error code.

If no file screen template exists with the specified name, the server MUST return FSRM_E_NOT_FOUND.