internal static extern int AmsiScanBuffer(
     AMSIHandleContext amsiContext
     , byte[] buffer
     , ulong length
     , string contentName
     , AMSIHandleSession session
     , out int result);
 internal static extern int AmsiScanString(AMSIHandleContext amsiContext,
                                           [In()][MarshalAs(UnmanagedType.LPWStr)] string @string,
                                           [In()][MarshalAs(UnmanagedType.LPWStr)] string contentName,
                                           AMSIHandleSession session,
                                           out int result);
 internal static extern int AmsiOpenSession(
     AMSIHandleContext amsiContext,
     out AMSIHandleSession session);
 internal static extern void AmsiCloseSession(
     AMSIHandleContext amsiContext,
     IntPtr session);
 internal static extern int AmsiInitialize([MarshalAs(UnmanagedType.LPWStr)] string appName, out AMSIHandleContext amsiContext);