Guest User

Untitled

a guest
Jan 16th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. [DllImport("dmp.dll", CharSet = CharSet.Auto, EntryPoint = "StartLogging")]
  2. public static extern int StartLogging(String AdapterName,
  3. PLOG_RECORD_CALLBACK LogRecordCallback,
  4. SafeWaitHandle StopLoggingEvent);
  5.  
  6. AutoResetEvent StopEvent = new AutoResetEvent(false);
  7.  
  8. StartLogging(comboBox1.Text, CallbackProcedure, StopEvent.SafeWaitHandle);
  9.  
  10. StopEvent.Set();
  11.  
  12. _WaitEvent := TSimpleEvent.Create(nil, resetmanual {boolean}, false, '', false);
  13. _WaitEvent.SetEvent;
  14. _WaitEvent.WaitFor;
Add Comment
Please, Sign In to add comment