IDvdControl2::SetState method
The SetState method saves the current disc position and state of the DVD Navigator filter.
Syntax
HRESULT SetState( [in] IDvdState *pState, [in] DWORD dwFlags, [out] IDvdCmd **ppCmd );
Parameters
- pState [in]
-
Pointer to the IDvdState interface on the object that contains the state information.
- dwFlags [in]
-
Bitwise OR of one or more flags from the DVD_CMD_FLAGS enumeration, specifying how to synchronize the command.
- ppCmd [out]
-
Receives a pointer to an IDvdCmd object that can be used to synchronize DVD commands. The caller must release the interface. This parameter can be NULL. For more information, see Synchronizing DVD Commands.
Return value
Returns S_OK if successful, or an HRESULT value otherwise.
Remarks
The DVD Navigator uses the location information in the given state object to restore the playback position to a specific location on the disc.
This method is demonstrated in the DVDSample application in CDvdCore::RestoreBookmark.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
Header |
|
|
Library |
|
See also