Share via


Windows Media Player 11 SDK IWMPPlugin::Init 

Windows Media Player SDK banner art

Previous Next

IWMPPlugin::Init

The IWMPPlugin::Init method is called when Windows Media Player initializes the plug-in.

Syntax

  

Parameters

dwPlaybackContext

[in]  DWORD value that indicates the particular Windows Media Player playback engine to which the plug-in belongs.

Return Values

The method returns an HRESULT.

Remarks

It is possible at any given time that multiple instances of Windows Media Player could be running in the same process. For instance, multiple Windows Media Player control instances could be embedded in the same browser window, or even in multiple instances of a browser that co-exist in the same process. It is also possible that the same instance of Windows Media Player could create multiple playback engines at the same time. The dwPlaybackContext value allows you to determine which instance of the Windows Media Player playback engine contains the plug-in. This is useful if you wish to enable multiple plug-ins to connect to each other.

Init and Shutdown will always be called on the same thread.

Requirements

Version: Windows Media Player 9 Series or later.

Header: Include wmprealestate.h.

See Also

Previous Next