IDvdInfo::GetCurrentUOPS method

Note  The IDvdInfo interface is deprecated. Use IDvdInfo2 instead.
 

Retrieves which IDvdControl methods are currently valid.

Syntax


HRESULT GetCurrentUOPS(
  [out] VALID_UOP_SOMTHING_OR_OTHER *pUOP
);

Parameters

pUOP [out]

Pointer to a DWORD value containing bits for all user operations (UOP). Each bit in the DWORD represents the state (valid or not valid) of a user operation. If the bit corresponding to a user operation is set, then that user operation is prohibited. For more information, see Remarks.

Return value

Returns an HRESULT value.

Return codeDescription
E_UNEXPECTED

DVD is not initialized or domain is not DVD_DOMAIN_Title.

S_OK

Success.

VFW_E_DVD_INVALIDDOMAIN

Requested action is not supported on this domain (DVD_DOMAIN).

VFW_E_DVD_OPERATION_INHIBITED

Requested action cannot occur at this point in the movie due to the authoring of the current DVD-Video disc.

 

Remarks

This method is valid in any domain. For more information, see DVD_DOMAIN.

The value of pUOP is a bit field defined as follows.

Bit Flag User function
0UOP_FLAG_Title_Or_Time_Play TitlePlay, TimePlay
1UOP_FLAG_Chapter_Search_Or_Play ChapterSearch, ChapterPlay
2UOP_FLAG_Title_PlayTitlePlay
3UOP_FLAG_Stop StopForResume
4UOP_FLAG_GoUp GoUp
5UOP_FLAG_Time_Or_Chapter_Search TimeSearch, ChapterSearch
6UOP_FLAG_Prev_Or_Top_PG_Search PrevPGSearch, TopPGSearch
7UOP_FLAG_Next_PG_Search NextPGSearch
8UOP_FLAG_Forward_Scan ForwardScan
9UOP_FLAG_Backward_Scan BackwardScan
10UOP_FLAG_Title_Menu_Call MenuCall with a parameter value of 2 (DVD_MENU_Title)
11UOP_FLAG_Root_Menu_Call MenuCall with a parameter value of 3 (DVD_MENU_Root)
12UOP_FLAG_SubPic_Menu_Call MenuCall with a parameter value of 4 (DVD_MENU_Subpicture)
13UOP_FLAG_Audio_Menu_Call MenuCall with a parameter value of 5 (DVD_MENU_Audio)
14UOP_FLAG_Angle_Menu_Call MenuCall with a parameter value of 6 (DVD_MENU_Angle)
15UOP_FLAG_Chapter_Menu_Call MenuCall with a parameter value of 7 (DVD_MENU_Chapter)
16UOP_FLAG_Resume Resume
17UOP_FLAG_Button_Select_Or_Activate UpperButtonSelect, LowerButtonSelect, LeftButtonSelect, RightButtonSelect, ButtonActivate, ButtonSelectAndActivate
18UOP_FLAG_Still_Off StillOff
19UOP_FLAG_Pause_On PauseOn, MenuLanguageSelect
20UOP_FLAG_Audio_Stream_Change AudioStreamChange
21UOP_FLAG_SubPic_Stream_Change SubpictureStreamChange
22UOP_FLAG_Angle_Change AngleChange, ParentalLevelSelect
23UOP_FLAG_Karaoke_Audio_Pres_Mode_Change KaraokeAudioPresentationModeChange
24UOP_FLAG_Video_Pres_Mode_Change VideoModePreferrence

 

This method is useful because DVD titles can enable or disable individual user operations at almost any point during playback.

Requirements

Header

Strmif.h (include Dshow.h)

See also

Error and Success Codes
IDvdInfo Interface

 

 

Show: