IWMSCPPluginAdmin Object (C#)
Previous | Next |
IWMSCPPluginAdmin Object (C#)
You can use the IWMSCPPluginAdmin object to manage control protocol plug-ins. Windows Media Server includes the following system plug-ins:
- WMS HTTP Server Control Protocol
- WMS MMS Server Control Protocol
- WMS RTSP Server Control Protocol
- Note In Windows Server 2008 operating systems, the MMS protocol is not supported, and Windows Media Services does not provide an MMS Server Control Protocol plug-in.
The IWMSCPPluginAdmin object exposes the following properties.
Property | Description |
BoundIPAddresses | Retrieves an IWMSBoundIPAddresses object containing a list of bound IP addresses. |
ControlProtocol | Retrieves the protocol name. |
ListenAllIPAddresses | Specifies and retrieves a Boolean value indicating whether the server must monitor all IP addresses for incoming client requests. |
Port | Specifies and retrieves the port number used by the protocol. |
Example Code
The following example illustrates how to retrieve an IWMSCPPluginAdmin object.
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. WMSServer Server; IWMSPlugin Plugin; IWMSCPPluginAdmin CPAdmin; try { // Create a new WMSServer object. Server = new WMSServerClass(); // Retrieve the plug-in to be configured. Plugin = Server.ControlProtocols[ "WMS RTSP Server Control Protocol"]; // Retrieve the custom interface of the plug-in. CPAdmin = (IWMSCPPluginAdmin)Plugin.CustomInterface; } catch (COMException comExc) { // TODO: Handle COM exceptions. } catch (Exception e) { // TODO: Handle exceptions. }
See Also
Previous | Next |