Export (0) Print
Expand All

IFullScreenVideoEx::SetEnabled method

The SetEnabled method enables or disables a specified display mode.

Syntax


HRESULT SetEnabled(
  [in]  long Mode,
  [in]  long bEnabled
);

Parameters

Mode [in]

Index of the display mode to enable or disable.

bEnabled [in]

Specifies one of the following Boolean values:

ValueMeaning
OATRUE

Enable the specified display mode.

OAFALSE

Disable the specified display mode.

 

Return value

Value Description
E_INVALIDARGInvalid argument.
S_OKSuccess.

 

Remarks

The Full Screen Renderer supports a static set of display modes. By default, every mode is enabled. You can use this method to enable or disable a particular display mode. The video card on the user's system might not support every mode. The Full Screen Renderer will not use a mode that the video card does not support, even if that mode is enabled. To determine whether the card supports a particular mode, call the IFullScreenVideoEx::IsModeAvailable method. If a mode is disabled, the Full Screen Renderer will not use it, even if the card supports it.

Display modes are indexed from zero. The IFullScreenVideoEx::CountModes method returns the number of modes. To retrieve the width, height, and bit depth of a particular display mode, call the IFullScreenVideoEx::GetModeInfo method.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Amvideo.h (include Dshow.h)

Library

Strmiids.lib

See also

Error and Success Codes
IFullScreenVideoEx Interface

 

 

Community Additions

ADD
Show:
© 2014 Microsoft