2022-02-23 13:55:19 -05:00
## 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)
2022-03-14 15:26:43 -04:00
### Methods - 100% API coverage (7 of 7 functions)
2022-02-23 13:55:19 -05:00
Native Method | Header | Managed Method
--- | --- | ---
[AmsiCloseSession ](https://www.google.com/search?num=5&q=AmsiCloseSession+site%3Adocs.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%3Adocs.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%3Adocs.microsoft.com ) | amsi.h | [Vanara.PInvoke.AMSI.AmsiNotifyOperation ](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiNotifyOperation )
2022-03-14 15:26:43 -04:00
[AmsiOpenSession ](https://www.google.com/search?num=5&q=AmsiOpenSession+site%3Adocs.microsoft.com ) | | [Vanara.PInvoke.AMSI.AmsiOpenSessionInternal ](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiOpenSessionInternal )
2022-02-23 13:55:19 -05:00
[AmsiScanBuffer ](https://www.google.com/search?num=5&q=AmsiScanBuffer+site%3Adocs.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%3Adocs.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%3Adocs.microsoft.com ) | amsi.h | [Vanara.PInvoke.AMSI.AmsiUninitialize ](https://github.com/dahall/Vanara/search?l=C%23&q=AmsiUninitialize )
### Structures
Native Structure | Header | Managed Structure
--- | --- | ---
[HAMSICONTEXT ](https://www.google.com/search?num=5&q=HAMSICONTEXT+site%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.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%3Adocs.microsoft.com ) | | [Vanara.PInvoke.AMSI.SafeHAMSISESSION ](https://github.com/dahall/Vanara/search?l=C%23&q=SafeHAMSISESSION )