IAntimalware::Scan method (amsi.h)

Scan a stream of content.

Syntax

HRESULT Scan(
  [in]  IAmsiStream          *stream,
  [out] AMSI_RESULT          *result,
  [out] IAntimalwareProvider **provider
);

Parameters

[in] stream

The IAmsiStream stream to be scanned.

[out] result

The result of the scan. See AMSI_RESULT.

[out] provider

The IAntimalwareProvider provider of the antimalware product.

Return value

This method can return one of these values.

Return code Description
S_OK
Success.
E_INVALIDARG
One or more argument is invalid.
E_NOT_VALID_STATE
The object is not initialized.

Requirements

Requirement Value
Minimum supported client Windows 10 [desktop apps only]
Minimum supported server Windows Server 2016 [desktop apps only]
Target Platform Windows
Header amsi.h

See also

AMSI_RESULT

IAmsiStream

IAntimalware

IAntimalwareProvider