Share via


IWMSPlugins::get_Category

banner art

Previous Next

IWMSPlugins::get_Category

The get_Category method retrieves the category name for the IWMSPlugins collection.

Syntax

  HRESULT get_Category(
  BSTR*  pVal
);

Parameters

pVal

[out] Pointer to a BSTR containing the category name.

Return Values

If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.

Return code Number Description
E_OUTOFMEMORY 0x8007000E There is insufficient memory to complete the function.
E_POINTER 0x80004003 pVal is a NULL pointer argument.

Remarks

The category identifies the general functionality of the plug-in. The following category names can be returned:

  • Authentication
  • Broadcast Data Sink
  • Cache Proxy
  • Control Protocol
  • Data Source
  • Event Notification and Authorization
  • Media Parser
  • Playlist Parser
  • Stream Filter
  • Unicast Data Sink

Example Code

#include <windows.h>
#include <atlbase.h>    // Includes CComBSTR.
#include "wmsserver.h"

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

HRESULT         hr;
CComBSTR        bstrText;

// 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_CacheProxy(&pPlugins);
if (FAILED(hr)) goto EXIT;

// Retrieve the category name for this
// collection of plug-ins.
hr = pPlugins->get_Category(&bstrText);
if (FAILED(hr)) goto EXIT;

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

Requirements

Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

  • IWMSPlugins Interface
Previous Next