IDesktopWallpaper::AdvanceSlideshow method

Switches the wallpaper on a specified monitor to the next image in the slideshow.

Syntax


HRESULT AdvanceSlideshow(
  [in]  LPCWSTR monitorID,
  [in]  DESKTOP_SLIDESHOW_DIRECTION direction
);

Parameters

monitorID [in]

The ID of the monitor on which to change the wallpaper image. This ID can be obtained through the GetMonitorDevicePathAt method. If this parameter is set to NULL, the monitor scheduled to change next is used.

direction [in]

The direction that the slideshow should advance. One of the following DESKTOP_SLIDESHOW_DIRECTION values:

DSD_FORWARD (0)

Advance the slideshow forward.

DSD_BACKWARD (1)

Advance the slideshow backward.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

See also

IDesktopWallpaper

 

 

Community Additions

ADD
Show:
© 2014 Microsoft