Share via


IWMSPlugins Interface

The IWMSPlugins interface contains a collection of IWMSPlugin interfaces.

In addition to the methods inherited from IDispatch, the IWMSPlugins interface exposes the following methods.

Method

Description

Clone

Creates a duplicate instance of a specific IWMSPluginIWMSPlugin Interface.

get_Category

Retrieves the category name for the IWMSPlugins collection.

get_Count

Retrieves the number of IWMSPlugin interfaces contained in the IWMSPlugins collection.

get_Item

Retrieves an IWMSPlugin interface from the IWMSPlugins collection.

get_length

Retrieves the number of IWMSPlugin interfaces contained in the IWMSPlugins collection. This method is provided for JScript compatibility.

Refresh

Updates the list of IWMSPlugin interfaces in the IWMSPlugins collection to reflect the plug-ins that are registered for use by the server.

Remove

Removes an IWMSPlugin interface from the IWMSPlugins collection.

Example

The following example illustrates how to retrieve a pointer to an IWMSPlugins interface

#include <windows.h>
#include "wmsserver.h"

// Declare variables and interfaces.
IWMSServer      *pServer;
IWMSPlugins     *pPlugins;

HRESULT         hr;

// Initialize the COM library and retrieve a pointer
// to an IWMSServer interface.
hr = CoInitialize(NULL);
hr = CoCreateInstance(CLSID_WMSServer,
                      NULL,
                      CLSCTX_ALL,
                      IID_IWMSServer,
                      (void **)&pServer);
if (FAILED(hr)) goto EXIT;

// Retrieve a pointer to an IWMSPlugins interface.
hr = pServer->get_EventHandlers(&pPlugins);
if (FAILED(hr)) goto EXIT;

EXIT:
    // TODO: Release temporary COM objects and uninitialize COM.

See Also

Reference

IWMSServer Interface

Concepts

Server Object Model Interfaces (C++)