|Microsoft DirectX 9.0|
The GetCurrentLocation method retrieves the current playback location.
HRESULT GetCurrentLocation( DVD_PLAYBACK_LOCATION2 *pLocation );
[out] Pointer to a variable of type DVD_PLAYBACK_LOCATION2 that receives the playback location information.
Returns one of the following HRESULT values.
|E_POINTER||The pLocation parameter is invalid.|
|VFW_E_DVD_INVALIDDOMAIN||The DVD Navigator is in an invalid domain.|
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.