Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSServer.OSProductType (Visual Basic .NET)
The OSProductType property retrieves the operating system product type that Windows Media Services is running on.
Syntax
WMS_OS_PRODUCT_TYPE = IWMSServer .OSProductType
Property Value
A member of a WMS_OS_PRODUCT_TYPE enumeration type. This must be one of the following values.
| Value | Description |
| WMS_OS_PRODUCT_SERVER | Windows Media Services is running on Windows Server 2003, Standard Edition or Windows Server 2008 Standard. |
| WMS_OS_PRODUCT_ADVANCED | Windows Media Services is running on Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008 Enterprise; or Windows Server 2008 Datacenter. |
Remarks
This property is read-only.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetOSType()
' Declare variables.
Dim Server As WMSServer
Dim osType As WMS_OS_PRODUCT_TYPE
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the OS type the server is
' currently running on.
osType = Server.OSProductType
Catch excCom As COMException
' TODO: Handle COM exceptions.
Catch exc As Exception
' TODO: Handle errors.
Finally
' TODO: Clean-up code goes here.
End Try
End Sub
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also
| Previous | Next |