banner art

Previous Next


The put_WrapperPath method specifies the path to a wrapper playlist file.


  HRESULT put_WrapperPath(
  BSTR  newVal



[in] BSTR that contains the path. By default, this parameter is a zero-length string.

Return Values

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

Return code Number Description
E_POINTER 0x80004003 Indicates that pVal is a NULL pointer argument.
ERROR_BAD_PATHNAME 0x000000A1 Indicates that pVal does not reference a file with a valid playlist extension.
NS_E_PUBLISHING_POINT_REMOVED 0xC00D145AL Indicates that the publishing point was already removed.
NS_E_WRONG_PUBLISHING_POINT_TYPE 0xC00D1452L Indicates that the method is not supported for cache proxy publishing points.


This method is not supported for cache proxy publishing points.

A wrapper playlist can contain references to media files that are streamed before and after the content that is requested by the client. Hence, the media files wrap the requested content. You can use a wrapper playlist to guarantee that every client that is connected to a publishing point renders specific content. In the following wrapper playlist example, media content is inserted before and after the requested content indicated by the "%url%" placeholder:

     <media src = "c:\wmpub\wmroot\content1.wmv"
     <media src = "%url%"
     <media src = "c:\wmpub\wmroot\content2.wmv"

Example Code

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


Header: wmsserver.h.

Library: WMSServerTypeLib.dll.

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

See Also

Previous Next