WMS_SERVER_EVENT_TYPE
The WMS_SERVER_EVENT_TYPE enumeration type identifies server events.
typedef enum WMS_SERVER_EVENT_TYPE{
WMS_EVENT_SERVER_ONLINE = 0,
WMS_EVENT_SERVER_OFFLINE = 1,
WMS_EVENT_SERVER_CRITICAL_ERROR =2,
WMS_EVENT_SERVER_PROPERTY_CHANGE =3,
WMS_EVENT_SERVER_ALLOW_CLIENTS_TO_CONNECT_CHANGE =4,
WMS_EVENT_SERVER_PLUGIN_LOAD_TYPE_CHANGE =5,
WMS_EVENT_SERVER_REVERSE_PROXY_MODE_CHANGE = 6,
WMS_EVENT_SERVER_DOWNLOAD_START = 7,
WMS_EVENT_SERVER_DOWNLOAD_COMPLETE = 8
};
Members
WMS_EVENT_SERVER_ONLINE |
A Windows Media server has started. |
WMS_EVENT_SERVER_OFFLINE |
A Windows Media server has stopped. This event is sent only for normal shutdown. |
WMS_EVENT_SERVER_CRITICAL_ERROR |
An authentication or authorization plug-in failed. The server stops allowing new connections and stops existing connections from requesting content for which an authorization is required. If the error occurs when an authentication or authorization plug-in is running, the plug-in is responsible for calling the LogEvent method on the IWMSEventLog interface, with a severity level of WMS_EVENT_LOG_LEVEL_ERROR, to log the error in the Windows Event Viewer. |
WMS_EVENT_SERVER_PROPERTY_CHANGE |
An item was added or changed in the IWMSNamedValues interface for the server. The previous and new values are indicated in the command context by the @WMS_COMMAND_CONTEXT_EVENT_OLD_VALUE and the @WMS_COMMAND_CONTEXT_EVENT_NEW_VALUE properties respectively. The @WMS_COMMAND_CONTEXT_EVENT_PROPERTY_NAME property in the command context contains the name of the property that was changed. |
WMS_EVENT_SERVER_ALLOW_CLIENTS_TO_CONNECT_CHANGE |
The AllowClientsToConnect property on the server has changed. The previous and new values are indicated in the command context by the @WMS_COMMAND_CONTEXT_EVENT_OLD_VALUE and the @WMS_COMMAND_CONTEXT_EVENT_NEW_VALUE properties respectively. You can call the AllowClientsToConnect property on the IWMSServer interface to set this property. |
WMS_EVENT_SERVER_PLUGIN_LOAD_TYPE_CHANGE |
The DefaultPluginLoadType property on the server changed. The previous and new values are indicated in the command context by the @WMS_COMMAND_CONTEXT_EVENT_OLD_VALUE and the @WMS_COMMAND_CONTEXT_EVENT_NEW_VALUE properties respectively. You can call the DefaultPluginLoadType property on the IWMSServer interface to set this property. |
WMS_EVENT_SERVER_REVERSE_PROXY_MODE_CHANGE |
The Boolean value associated with the EnableReverseProxyMode property on the IWMSServer interface was changed. |
WMS_EVENT_SERVER_DOWNLOAD_START |
The DownloadContent method on the IWMSServer interface was called. The HRESULT from the WMS_EVENT structure can be used to determine whether the download started successfully. |
WMS_EVENT_SERVER_DOWNLOAD_COMPLETE |
The content download initiated by the DownloadContent method on the IWMSServer interface has been completed. The HRESULT from the WMS_EVENT structure can be used to determine whether the download was successful. |
Remarks
This enumeration identifies subevents related to the WMS_EVENT_SERVER event in the WMS_EVENT_TYPE enumeration. You can find the subevent by examining the WMS_COMMAND_CONTEXT_EVENT value in the Command Context.
Requirements
Header: wmsevent.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.
See Also (General)
See Also (Visual Basic .NET)
IWMSCacheProxyServerIWMSCacheProxyServer Object (Visual Basic .NET)
IWMSCacheProxyServerCallbackIWMSCacheProxyServerCallback Object (Visual Basic .NET)
IWMSEventLog.LogEventIWMSEventLog.LogEvent (Visual Basic .NET)
IWMSNamedValuesIWMSNamedValues Object (Visual Basic .NET)
IWMSServer.AllowClientsToConnectIWMSServer.AllowClientsToConnect (Visual Basic .NET)
IWMSServer.DefaultPluginLoadTypeIWMSServer.DefaultPluginLoadType (Visual Basic .NET)
IWMSServer.DownloadContentIWMSServer.DownloadContent (Visual Basic .NET)
IWMSServer.EnableReverseProxyModeIWMSServer.EnableReverseProxyMode (Visual Basic .NET)
See Also (C#)
IWMSCacheProxyServerIWMSCacheProxyServer Object (C#)
IWMSCacheProxyServerCallbackIWMSCacheProxyServerCallback Object (C#)
IWMSEventLog.LogEventIWMSEventLog.LogEvent (C#)
IWMSNamedValuesIWMSNamedValues Object (C#)
IWMSServer.AllowClientsToConnectIWMSServer.AllowClientsToConnect (C#)
IWMSServer.DefaultPluginLoadTypeIWMSServer.DefaultPluginLoadType (C#)
IWMSServer.DownloadContentIWMSServer.DownloadContent (C#)
IWMSServer.EnableReverseProxyModeIWMSServer.EnableReverseProxyMode (C#)
See Also (C++)
IWMSCacheProxyServerIWMSCacheProxyServer Interface
IWMSCacheProxyServerCallbackIWMSCacheProxyServerCallback Interface
IWMSEventLog::LogEvent
IWMSNamedValuesIWMSNamedValues Interface
IWMSServer::DownloadContent
IWMSServer::put_AllowClientsToConnect
IWMSServer::put_DefaultPluginLoadType
IWMSServer::put_EnableReverseProxyMode