private static extern int MsgWaitForMultipleObjects(uint count, IntPtr[] handles, bool waitForAll, uint timeout, WakeMask wakeMask);
public static int MsgWaitForMultipleObjects(IntPtr[] handles, bool waitForAll, uint timeout, WakeMask wakeMask) { return(MsgWaitForMultipleObjects((uint)handles.Length, handles, waitForAll, timeout, wakeMask)); }
public static Wait MsgWaitForMultipleObjects(IntPtr[] Handles, int Timeout, WakeMask Mask) { return (Wait)OpenNETCF.Threading.NativeMethods.MsgWaitForMultipleObjectsEx((uint)Handles.Length, Handles, (uint)Timeout, (uint) Mask, 0); }