ISystemMediaTransportControlsInterop::GetForWindow method (systemmediatransportcontrolsinterop.h)

Gets an instance of the ISystemMediaTransportControls interface for the specified window.

Syntax

HRESULT GetForWindow(
        HWND   appWindow,
        REFIID riid,
  [out] void   **mediaTransportControl
);

Parameters

appWindow

The top-level app window for which the ISystemMediaTransportControls interface is retrieved.

riid

A reference to the IID of the interface to retrieve.

[out] mediaTransportControl

Receives the ISystemMediaTransportControls that corresponds to the appWindow window.

Return value

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

Remarks

The appWindow parameter must refer to a top-level window that belongs to the calling process.

Requirements

Requirement Value
Target Platform Windows
Header systemmediatransportcontrolsinterop.h

See also

ISystemMediaTransportControlsInterop