共用方式為


WMS_EVENT_SERVER

A server event occurred. The WMS_COMMAND_CONTEXT_EVENT in the command context contains one of the following WMS_SERVER_EVENT_TYPE values.

Value

Description

WMS_EVENT_SERVER_ONLINE

A Windows Media server has started.

WMS_EVENT_SERVER_OFFLINE

A Windows Media server has stopped.

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.

WMS_EVENT_SERVER_PROPERTY_CHANGE

An item was added to or changed in the IWMSNamedValues collection. 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 values respectively. The @WMS_COMMAND_CONTEXT_EVENT_PROPERTY_NAME value in the command context is set to the name of the property that was altered.

WMS_EVENT_SERVER_ALLOW_CLIENTS_TO_CONNECT_CHANGE

The AllowClientsToConnect property on the IWMSServer object 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 values respectively.

WMS_EVENT_SERVER_PLUGIN_LOAD_TYPE_CHANGE

The DefaultPluginLoadType property on the IWMSServer object 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 values respectively.

WMS_EVENT_SERVER_REVERSE_PROXY_MODE_CHANGE

The EnableReverseProxyMode property on the IWMSServer object 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 values respectively.

WMS_EVENT_SERVER_DOWNLOAD_START

The IWMSServer object’s DownloadContent property was called. The HRESULT from the WMS_EVENT structure can be used to determine whether the download started.

WMS_EVENT_SERVER_DOWNLOAD_COMPLETE

The download initiated by the IWMSServer object’s DownloadContent property was completed. The HRESULT from the WMS_EVENT structure can be used to determine whether the download was completed.

Note

   Server-level plug-ins receive this event; however, publishing-point-level plug-ins will not. For more information, see Event Level.

See Also (General)

See Also (Visual Basic .NET)

See Also (C#)

See Also (C++)