IWMSPlugin::put_Name

banner art

Previous Next

IWMSPlugin::put_Name

The put_Name method specifies the name of a specific instance of the IWMSPlugin interface.

Syntax

  HRESULT put_Name(
  BSTR  pVal
);

Parameters

pVal

[in] BSTR containing the name.

Return Values

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

Return code Number Description
NS_E_DUPLICATE_NAME 0xC00D0036L pVal is already being used by another plug-in in the current plug-in collection.
NS_E_NAMESPACE_BAD_NAME 0xC00D1396L pVal contains an invalid character. Invalid characters are: & " ' < > \
NS_E_NAMESPACE_EMPTY_NAME 0xC00D1394L pVal is a zero-length string.
NS_E_NAMESPACE_NAME_TOO_LONG 0xC00D1392L pVal is longer than the maximum allowed length.

Example Code

  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

Previous Next