Share via


IFullScreenVideoEx::GetCurrentMode

 
Microsoft DirectShow 9.0

IFullScreenVideoEx::GetCurrentMode

The GetCurrentMode method retrieves the current display mode.

Syntax

  HRESULT GetCurrentMode(
  long *pMode
);

Parameters

pMode

[out] Pointer to a variable that receives the index of the current video mode. Pass this index to the IFullScreenVideoEx::GetModeInfo method to obtain information about this mode, including the width, height, and bit depth.

Return Values

Returns an HRESULT value. Possible values include the following.

Value Description
E_POINTER NULL pointer argument.
S_OK Success.
VFW_E_NOT_CONNECTED The filter did not load DirectDraw.

Requirements

Header: Declared in Amvideo.h; include Dshow.h.

Library: Use Strmiids.lib.

See Also