IAntimalwareProvider::Scan method

Scan a stream of content.

Syntax

HRESULT Scan(
  IAmsiStream *stream,
  AMSI_RESULT *result
);

Parameters

stream

The IAmsiStream stream to be scanned.

result

The result of the scan. See AMSI_RESULT.

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

   
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

IAntimalwareProvider