Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Runtime.InteropServices;
- namespace Interop
- {
- public class InteropEvents
- {
- [DllImport("Kernel32.dll")]
- public static extern Boolean SetEvent(IntPtr hEvent);
- [DllImport("Kernel32.dll")]
- public static extern Boolean ResetEvent(IntPtr hEvent);
- [DllImport("Kernel32.dll")]
- public static extern IntPtr OpenEvent(UInt32 dwDesiredAccess,Boolean bInheritHandle,String lpName);
- [DllImport("Kernel32.dll")]
- public static extern IntPtr CreateEvent(IntPtr lpEventAttributes,Boolean bManualReset,Boolean bInitialState,String lpName);
- [DllImport("Kernel32.dll")]
- public static extern UInt32 WaitForSingleObject(IntPtr hHandle,Int32 dwMilliseconds);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment