AmsiResultIsMalware function

Determines if the result of a scan indicates that the content should be blocked.

Syntax


BOOL AmsiResultIsMalware(
  _In_ AMSI_RESULT r
);

Parameters

r [in]

The AMSI_RESULT returned by AmsiScanBuffer or AmsiScanString.

Return value

true if the scanned content contains malware and should be blocked. Otherwise, false.

Requirements

Minimum supported client

Windows 10 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Amsi.h

Library

Amsi.lib

DLL

Amsi.dll

See also

AmsiScanBuffer
AmsiScanString
AMSI_RESULT

 

 

Show: