## Vanara.PInvoke.AMSI  
PInvoke API (methods, structures and constants) imported from Windows Antimalware Scan Interface (AMSI.dll).

- Includes methods from amsi.dll  
- Current NuGet release: [![Nuget](https://img.shields.io/nuget/v/Vanara.PInvoke.AMSI?logo=nuget&style=flat-square)![Nuget](https://img.shields.io/nuget/dt/Vanara.PInvoke.AMSI?label=%20&style=flat-square)](https://www.nuget.org/packages/Vanara.PInvoke.AMSI)  
### Methods - 100% API coverage (7 of 7 functions)  
Native Method | Header | Managed Method  
--- | --- | ---  
[AmsiCloseSession](https://www.google.com/search?num=5&q=AmsiCloseSession+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AmsiCloseSession](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiCloseSession)  
[AmsiInitialize](https://www.google.com/search?num=5&q=AmsiInitialize+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AmsiInitialize](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiInitialize)  
[AmsiNotifyOperation](https://www.google.com/search?num=5&q=AmsiNotifyOperation+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AmsiNotifyOperation](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiNotifyOperation)  
[AmsiOpenSession](https://www.google.com/search?num=5&q=AmsiOpenSession+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.AmsiOpenSessionInternal](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiOpenSessionInternal)  
[AmsiScanBuffer](https://www.google.com/search?num=5&q=AmsiScanBuffer+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AmsiScanBuffer](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiScanBuffer)  
[AmsiScanString](https://www.google.com/search?num=5&q=AmsiScanString+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AmsiScanString](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiScanString)  
[AmsiUninitialize](https://www.google.com/search?num=5&q=AmsiUninitialize+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AmsiUninitialize](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiUninitialize)  
### Enumerations  
Native Enum | Header | Managed Enum  
--- | --- | ---  
[AMSI_ATTRIBUTE](https://www.google.com/search?num=5&q=AMSI_ATTRIBUTE+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AMSI_ATTRIBUTE](https://github.com/dahall/Vanara/search?l=C%23&q=AMSI_ATTRIBUTE)  
[AMSI_RESULT](https://www.google.com/search?num=5&q=AMSI_RESULT+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.AMSI_RESULT](https://github.com/dahall/Vanara/search?l=C%23&q=AMSI_RESULT)  
### Structures  
Native Structure | Header | Managed Structure  
--- | --- | ---  
[HAMSICONTEXT](https://www.google.com/search?num=5&q=HAMSICONTEXT+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.HAMSICONTEXT](https://github.com/dahall/Vanara/search?l=C%23&q=HAMSICONTEXT)  
[HAMSISESSION](https://www.google.com/search?num=5&q=HAMSISESSION+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.HAMSISESSION](https://github.com/dahall/Vanara/search?l=C%23&q=HAMSISESSION)  
### Interfaces  
Native Interface | Header | Managed Interface  
--- | --- | ---  
[IAmsiStream](https://www.google.com/search?num=5&q=IAmsiStream+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.IAmsiStream](https://github.com/dahall/Vanara/search?l=C%23&q=IAmsiStream)  
[IAntimalware](https://www.google.com/search?num=5&q=IAntimalware+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.IAntimalware](https://github.com/dahall/Vanara/search?l=C%23&q=IAntimalware)  
[IAntimalware2](https://www.google.com/search?num=5&q=IAntimalware2+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.IAntimalware2](https://github.com/dahall/Vanara/search?l=C%23&q=IAntimalware2)  
[IAntimalwareProvider](https://www.google.com/search?num=5&q=IAntimalwareProvider+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.IAntimalwareProvider](https://github.com/dahall/Vanara/search?l=C%23&q=IAntimalwareProvider)  
[IAntimalwareProvider2](https://www.google.com/search?num=5&q=IAntimalwareProvider2+site%3Alearn.microsoft.com) | amsi.h | [Vanara.PInvoke.AMSI.IAntimalwareProvider2](https://github.com/dahall/Vanara/search?l=C%23&q=IAntimalwareProvider2)  
### Classes  
Native Class | Header | Managed Class  
--- | --- | ---  
[AmsiStream](https://www.google.com/search?num=5&q=AmsiStream+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.AmsiStream](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiStream)  
[CAntimalware](https://www.google.com/search?num=5&q=CAntimalware+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.CAntimalware](https://github.com/dahall/Vanara/search?l=C%23&q=CAntimalware)  
[SafeHAMSICONTEXT](https://www.google.com/search?num=5&q=SafeHAMSICONTEXT+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.SafeHAMSICONTEXT](https://github.com/dahall/Vanara/search?l=C%23&q=SafeHAMSICONTEXT)  
[SafeHAMSISESSION](https://www.google.com/search?num=5&q=SafeHAMSISESSION+site%3Alearn.microsoft.com) |  | [Vanara.PInvoke.AMSI.SafeHAMSISESSION](https://github.com/dahall/Vanara/search?l=C%23&q=SafeHAMSISESSION)  
