WMS_PLUGIN_STATUS
Previous | Next |
WMS_PLUGIN_STATUS
The WMS_PLUGIN_STATUS enumeration type indicates the status of a plug-in.
Syntax
typedef enum WMS_PLUGIN_STATUS{ WMS_PLUGIN_NONE = 0x0000, WMS_PLUGIN_ERROR = 0x0001, WMS_PLUGIN_LOADED = 0x0002, WMS_PLUGIN_ENABLED = 0x0004, WMS_PLUGIN_LOADED_IN_PROC = 0x0008, WMS_PLUGIN_LOADED_OUT_OF_PROC = 0x0010, WMS_PLUGIN_REMOVE_ON_SERVICE_RESTART = 0x0020 };
Members
WMS_PLUGIN_NONE
The plug-in is not loaded.
WMS_PLUGIN_ERROR
The plug-in failed to load.
WMS_PLUGIN_LOADED
The plug-in loaded successfully.
WMS_PLUGIN_ENABLED
The plug-in was enabled.
WMS_PLUGIN_LOADED_IN_PROC
The plug-in was loaded into the client process.
WMS_PLUGIN_LOADED_OUT_OF_PROC
The plug-in was loaded outside of the client process.
WMS_PLUGIN_REMOVE_ON_SERVICE_RESTART
The plug-in will be removed when the Windows Media server is restarted.
Remarks
When the server starts, all plug-ins that are not enabled have an initial state of WMS_PLUGIN_NONE. The server sets the state of the plug-in to WMS_PLUGIN_LOADED if it loads successfully and to WMS_PLUGIN_ERROR if it fails to load. If a plug-in is successfully enabled, the server sets the status to WMS_PLUGIN_ENABLED & WMS_PLUGIN_LOADED. If a plug-in fails after it has been loaded, it will have a status of WMS_PLUGIN_LOADED & WMS_PLUGIN_ERROR. If you then set the Enabled property on the IWMSPlugin interface to false, the status will be changed to WMS_PLUGIN_LOADED. The only way to unload a plug-in is to remove it from the register. You can retrieve the status by calling the Status property on the IWMSPlugin interface.
Requirements
Header: wmsplugin.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 |