IDvdInfo2::GetCurrentLocation method

The GetCurrentLocation method retrieves the current playback location.

Syntax


HRESULT GetCurrentLocation(
  [out] DVD_PLAYBACK_LOCATION2 *pLocation
);

Parameters

pLocation [out]

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 codeDescription
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

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Strmif.h (include Dshow.h)

Library

Strmiids.lib

See also

DVD Applications
Error and Success Codes
IDvdInfo2 Interface

 

 

Show: