Advertisement
Advertisement
| 05.03.2008 at 04:17AM PDT, ID: 23373681 | Points: 500 |
|
[x]
Attachment Details
|
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.03.2008 at 06:03PM PDT, ID: 21494242 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: |
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSCPPluginAdmin CPAdmin;
IWMSBoundIPAddresses BoundIPAddr;
try
{
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPlugin object for the
// WMS RTSP Server Control Protocol plug-in.
Plugin = Server.ControlProtocols["WMS RTSP Server Control Protocol"];
// Retrieve the administrative interface for the plug-in.
CPAdmin = (IWMSCPPluginAdmin)Plugin.CustomInterface;
// Retrieve the list of bound IP addresses.
BoundIPAddr = CPAdmin.BoundIPAddresses;
// Retrieve the name of the protocol used by the plug-in.
string strProtocol = CPAdmin.ControlProtocol;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception exc)
{
// TODO: Handle exceptions here.
}
finally
{
// TODO: Perform clean-up here.
}
|
| 05.03.2008 at 06:06PM PDT, ID: 21494244 |
| 05.04.2008 at 05:54AM PDT, ID: 21495559 |