Esempio n. 1
0
        public void OpenProcessCloseTraceTest()
        {
            var callbackCount = 0;

            Assert.That(() =>
            {
                var logFile           = new EventLogFile(logfilePath);
                logFile.EventCallback = EvtCallback;
                using (var log = new EventTraceSingleLog(logFile))
                {
                    using (var mem = SafeHGlobalHandle.CreateFromStructure <ETW_TRACE_PARTITION_INFORMATION>())
                    {
                        Assert.That(QueryTraceProcessingHandle(log.Handle, ETW_PROCESS_HANDLE_INFO_TYPE.EtwQueryPartitionInformation, default, 0, mem, mem.Size, out var retLen), ResultIs.Successful);
Esempio n. 2
0
 public EventLogFile(EventLogFile src) : this((string)null) => InternalCopy(src.m_log);