Esempio n. 1
0
 private AmsiContext(AmsiContextSafeHandle context)
 {
     _handle = context;
 }
Esempio n. 2
0
 internal static extern int AmsiScanBuffer(AmsiContextSafeHandle amsiContext, byte[] buffer, uint length, string contentName, AmsiSessionSafeHandle session, out AmsiResult result);
 internal AmsiSession(AmsiContextSafeHandle context, AmsiSessionSafeHandle session)
 {
     _context = context;
     _session = session;
 }
Esempio n. 4
0
 internal static extern int AmsiScanString(AmsiContextSafeHandle amsiContext, [In, MarshalAs(UnmanagedType.LPWStr)] string payload, [In, MarshalAs(UnmanagedType.LPWStr)] string contentName, AmsiSessionSafeHandle session, out AmsiResult result);
Esempio n. 5
0
 internal static extern void AmsiCloseSession(AmsiContextSafeHandle amsiContext, IntPtr session);
Esempio n. 6
0
 internal static extern int AmsiOpenSession(AmsiContextSafeHandle amsiContext, out AmsiSessionSafeHandle session);
Esempio n. 7
0
 internal static extern int AmsiInitialize([MarshalAs(UnmanagedType.LPWStr)] string appName, out AmsiContextSafeHandle amsiContext);
Esempio n. 8
0
 internal static extern int AmsiScanBuffer(AmsiContextSafeHandle amsiContext, byte[] buffer, uint length, [In, MarshalAs(UnmanagedType.LPWStr)] string contentName, AmsiSessionSafeHandle session, out AmsiResult result);