Share via


IDvdInfo2::GetCurrentLocation

 
Microsoft DirectShow 9.0

IDvdInfo2::GetCurrentLocation

The GetCurrentLocation method retrieves the current playback ___location.

Syntax

  HRESULT GetCurrentLocation(
  DVD_PLAYBACK_LOCATION2 *pLocation
);

Parameters

pLocation

[out] Pointer to a variable of type DVD_PLAYBACK_LOCATION2 that receives the playback ___location information.

Return Values

Returns one of the following HRESULT values.

Return code Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER The pLocation parameter is invalid.
VFW_E_DVD_INVALIDDOMAIN The DVD Navigator is in an invalid ___domain.

Remarks

This method retrieves information sufficient to restart playback of a video from the current playback ___location in titles that don't explicitly disable seeking to the current ___location. After the disc has been ejected, the information returned by this method will not necessarily be sufficient to restart playback. To save the current ___location and state information to disc so that the user can return to the same ___location at any later time, use GetState.

Requirements

Header: Declared in Strmif.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also