Displaying Dialog Boxes
[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]
The online store can invoke dialog boxes through Windows Media Player. To do this, call External.showPopup from the discovery page script code, providing a custom index value that represents the dialog box to display. This index value has meaning only to the online store code; Windows Media Player does not interpret this value. Windows Media Player then calls IWMPContentPartner::GetItemInfo, passing g_szItemInfo_PopupURL for the bstrInfoName parameter and the index number for the pContext parameter. The plug-in then returns a BSTR containing the URL of the webpage to display in the dialog box and the Player shows the dialog box.
Related topics