WMS_SERVER_EVENT_TYPE

banner art

Previous Next

WMS_SERVER_EVENT_TYPE

The WMS_SERVER_EVENT_TYPE enumeration type identifies server events.

Syntax

  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)

See Also (C#)

See Also (C++)

Previous Next