Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DllImport("dmp.dll", CharSet = CharSet.Auto, EntryPoint = "StartLogging")]
- public static extern int StartLogging(String AdapterName,
- PLOG_RECORD_CALLBACK LogRecordCallback,
- SafeWaitHandle StopLoggingEvent);
- AutoResetEvent StopEvent = new AutoResetEvent(false);
- StartLogging(comboBox1.Text, CallbackProcedure, StopEvent.SafeWaitHandle);
- StopEvent.Set();
- _WaitEvent := TSimpleEvent.Create(nil, resetmanual {boolean}, false, '', false);
- _WaitEvent.SetEvent;
- _WaitEvent.WaitFor;
Add Comment
Please, Sign In to add comment