IDvdInfo2::GetCurrentLocation method (strmif.h)
[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The GetCurrentLocation
method retrieves the current playback location.
Syntax
HRESULT GetCurrentLocation(
[out] DVD_PLAYBACK_LOCATION2 *pLocation
);
Parameters
[out] pLocation
Pointer to a variable of type DVD_PLAYBACK_LOCATION2 that receives the playback location information.
Return value
Returns one of the following HRESULT values.
Return code | Description |
---|---|
|
Success. |
|
Invalid argument. |
|
The pLocation parameter is invalid. |
|
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
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | strmif.h (include Dshow.h) |
Library | Strmiids.lib |