IWMSServer::ExportXML

banner art

Previous Next

IWMSServer::ExportXML

The ExportXML method creates an XML document containing the server configuration data.

Syntax

  HRESULT ExportXML(
  BSTR  bstrXMLFileName
);

Parameters

bstrXMLFileName

[in] BSTR containing the name of the XML document.

Return Values

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

Return code Number Description
E_INVALIDARG 0x80070057 Indicates that bstrXMLFileName is invalid.
ERROR_PATH_NOT_FOUND 0x00000003 Indicates that the path indicated by bstrXMLFileName was not found.

Remarks

You must save the XML document in a file with an .xml extension before you can use it to configure a server.

This method requires the Network Service account to have write and browse access to the specified path.

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