Ejemplo n.º 1
0
 private static extern bool EvtExportLog(
     IntPtr sessionHandle,
     string path,
     string query,
     string targetPath,
     [MarshalAs(UnmanagedType.I4)] EventExportLogFlags flags);
Ejemplo n.º 2
0
 // Execute wevtapi.EvtExportLog
 private static extern bool EvtExportLog(
     IntPtr sessionHandle,
     string path,
     string query,             // USE QUERY TO FILTER EVENTS SELECTED FOR EXPORT OR RETRIEVAL
     string targetPath,
     [MarshalAs(UnmanagedType.I4)] EventExportLogFlags flags);