Building the Plug-in for a Type 1 Online Store
[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.]
A type 1 online store must provide a plug-in that implements the IWMPContentPartner interface. The plug-in runs in a separate process from Windows Media Player.
The steps for creating a plug-in that runs out-of-process are as follows:
- Write your plug-in as if it were an in-process COM server.
- Create a DllSurrogate registry entry on the user's computer. The DllSurrogate entry informs the COM runtime that your plug-in should be created in an instance of the default DLL surrogate, dllhost.exe.
For detailed information about registering your plug-in, see Registry Keys and Entries for a Type 1 Online Store.
You do not need to create any proxy or stub code for your plug-in. All of the marshaling support is provided by Windows Media Player.
You can use the online store plug-in wizard to quickly create a plug-in that serves as a starting point. For more information, see Installing the Online Store Plug-in Wizard.
Related topics