Share via


IWMSClassObject::AllocIWMSPacket

banner art

Previous Next

IWMSClassObject::AllocIWMSPacket

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

Syntax

  

Parameters

riid

[in] REFIID value specifying the GUID for the IWMSPacket interface. This must be IID_IWMSPacket.

ppunk

[out] Pointer to an IWMSPacket 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 IWMSPacket 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