IWMSClassObject::AllocIWMSPacketList

banner art

Previous Next

IWMSClassObject::AllocIWMSPacketList

The AllocIWMSPacketList method allocates a packet list for use by a custom data source plug-in.

Syntax

  

Parameters

riid

[in] REFIID value specifying the GUID for the IWMSPacketList interface. This must be IID_IWMSPacketList.

ppunk

[out] Pointer to a pointer to an IWMSPacketList interface.

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 The ppunk parameter is NULL.
E_OUTOFMEMORY 0x8007000E There was not enough memory to create the object.

Remarks

The server sends your plug-in a pointer to the IWMSClassObject interface when it calls the IWMSBasicPlugin::InitializePlugin method.

If you are allocating an IWMSPacketList object, it is more efficient to call this method than it is to call IWMSClassObject::CreateInstance.

Example Code

  if (FAILED(hr)) goto EXIT;

EXIT:
    // TODO: Release temporary objects.

Requirements

Header: nsscore.h.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also

Previous Next