共用方式為


Windows Media Player Object Model Reference

[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 Windows Media Player Object Model Reference sections contain detailed information about the Windows Media Player ActiveX control object model. The object model provides interfaces that let developers add Windows Media Player functionality to webpages, C++ programs, and .NET applications.

The Object Model Reference for Scripting is presented in a style designed for use with script languages like Microsoft JScript, and it documents the object model in terms of objects with their associated properties, methods, and events.

The Object Model Reference for C++ provides documentation for COM interfaces that C++ programmers can use to communicate with the Windows Media Player ActiveX control or the Windows Media Player Mobile ActiveX control. Most of these interfaces are implemented by Windows Media Player control and called by the C++ application. However, some of the interfaces (for example, IWMPEvents and IWMPRemoteMediaServices) are implemented by the C++ application and called by the Windows Media Player control.

The Object Model Reference for Visual Basic .NET and C# provides documentation for the properties, methods, and events of the AxWindowsMediaPlayer object and for interfaces to the Windows Media Player ActiveX control that are available through COM interoperability in a solution coded in Visual Studio .NET 2002 or later.

The Windows Media Player Object Model Reference contains the following sections.

Section Description
Object Model Reference for Scripting Provides reference documentation for the properties, methods, and events that the object model makes available to scripting languages. This information is also useful for Visual Basic 6.0 programming.
Object Model Reference for C++ Provides reference documentation for C++ interfaces.
Object Model Reference for Visual Basic .NET and C# Provides reference documentation for objects and interfaces available to Visual Basic .NET and C# programmers through COM interoperability.
Attribute Reference Provides reference documentation for metadata attributes that are of interest to Windows Media Player SDK developers.
Enumeration Types Provides reference documentation for the enumeration types that are used by the C++ and .NET interfaces.

 

Windows Media Player Object Model