IItemPreviewerExt::ProcessTransformCommand method

Permits processing of a transformation command encountered in a preview template.

Syntax

HRESULT ProcessTransformCommand(
  [in]          DWORD     dwContext,
  [in]          LPCOLESTR pwszName,
  [in]          LPCOLESTR pwszArg,
  [out, retval] VARIANT   *pvarResult
);

Parameters

dwContext [in]

Type: DWORD

The context identifier for the operation. Override the dwContext default to set the context identifier to a value of your choosing.

pwszName [in]

Type: LPCOLESTR

A pointer to the name of the transformation command as a Unicode string.

pwszArg [in]

Type: LPCOLESTR

A pointer to the argument as a Unicode string.

pvarResult [out, retval]

Type: VARIANT*

A pointer to the result variant. pvarResult must not be a NULL pointer.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The IItemPreviewerExt interface is supported only on Windows XP and Windows Server 2003, and should no longer be used.

To preview attachments with a third-party protocol handler on computers running Windows XP or Windows Server 2003, it may be necessary to use the IItemPreviewerExt interface, and the following APIs: the ISearchProtocolUI, IItemPropertyBag and ISearchItem interfaces, the LINKINFO structure, and the LINKTYPE enumeration.

Requirements

Requirement Value
Minimum supported client
Windows XP with SP2 [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Redistributable
Windows Desktop Search (WDS) 3.0

See also

IItemPreviewerExt