void TestPlayPeriodInTitleAutoStop() { int hr; DvdHMSFTimeCode pStartTime = new DvdHMSFTimeCode(); DvdHMSFTimeCode pStopTime = new DvdHMSFTimeCode(); IDvdCmd ppCmd; DvdPlaybackLocation2 pLocation; AllowPlay(); pStartTime.bHours = 0; pStartTime.bMinutes = 0; pStartTime.bSeconds = 1; pStartTime.bFrames = 0; pStopTime.bHours = 0; pStopTime.bMinutes = 0; pStopTime.bSeconds = 4; pStopTime.bFrames = 0; hr = m_idc2.PlayPeriodInTitleAutoStop(2, pStartTime, pStopTime, DvdCmdFlags.Flush | DvdCmdFlags.SendEvents, out ppCmd); DsError.ThrowExceptionForHR(hr); Thread.Sleep(3100); hr = m_idi2.GetCurrentLocation(out pLocation); Debug.Assert(hr == DsResults.E_DVDInvalidDomain, "TestPlayPeriodInTitleAutoStop"); }