public static extern ObjectWaitType WaitForSingleObject( SafeMemoryHandle handle, ObjectWaitType wait);
public static bool WaitForSingleObject(SafeMemoryHandle handle, ObjectWaitType wait = ObjectWaitType.OBJECT_WAIT_INFINITE) { return(Imports.WaitForSingleObject(handle, wait) != ObjectWaitType.OBJECT_WAIT_0); }