[DllImport("kernel32", SetLastError=true, ExactSpelling=true)]
internal static extern Int32 WaitForSingleObject(IntPtr handle, Int32 milliseconds);
None.
None.
public static uint INFINITE = 0xFFFFFFFF;
and use:
WaitForSingleObject(handle, (int)INFINITE);
Edgar - edgarrc(at)gmail.com
Please add some!
If you're waiting on a file system object, look at System.IO.FileSystemWatcher