@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: TODO - a short description !!!!C# Signature: using HANDLE = System.IntPtr; ... [DllImport("coredll.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool EventModify(HANDLE hEvent, [In, MarshalAs(UnmanagedType.U4)] int dEvent); !!!!VB Signature: Declare Function EventModify Lib "coredll.dll" (TODO) As TODO !!!!User-Defined Types: private enum EventFlags { EVENT_PULSE = 1, EVENT_RESET = 2, EVENT_SET = 3 } !!!!Alternative Managed API: Do you know one? Please contribute it! !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using HANDLE = System.IntPtr; namespace Test { class Program { [DllImport("coredll.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Auto)] public static extern HANDLE CreateEvent(HANDLE lpEventAttributes, [In, MarshalAs(UnmanagedType.Bool)] bool bManualReset, [In, MarshalAs(UnmanagedType.Bool)] bool bIntialState, [In, MarshalAs(UnmanagedType.BStr)] string lpName); [DllImport("coredll.dll", SetLastError = true, CallingConvention = CallingConvention.Winapi, CharSet = CharSet.Auto)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool CloseHandle(HANDLE hObject); [DllImport("coredll.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] public static extern bool EventModify(HANDLE hEvent, [In, MarshalAs(UnmanagedType.U4)] int dEvent); public enum EventFlags { PULSE = 1, RESET = 2, SET = 3 } private static bool SetEvent(HANDLE hEvent) { return EventModify(hEvent, (int)EventFlags.SET); } private static bool ResetEvent(HANDLE hEvent) { return EventModify(hEvent, (int)EventFlags.RESET); } static void Main(string[] args) { IntPtr p = CreateEvent(HANDLE.Zero, false, true, string.Empty); SetEvent(p); ResetEvent(p); CloseHandle(p); } } } Documentation: EventModify@msdn on MSDN
Edit coredll.EventModify
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.