Share via


IWMSClassObject::CreateInstance

banner art

Previous Next

IWMSClassObject::CreateInstance

The CreateInstance method is a generic method for creating objects.

Syntax

  

Parameters

riid

[in] REFIID value specifying the GUID that identifies the requested interface. This must be one of the following values.

Value Description
IID_IWMSCommandContext GUID identifying an IWMSCommandContext interface.
IID_IWMSContentDescriptionList GUID identifying an IWMSContentDescriptionList interface.
IID_IWMSContext GUID identifying an IWMSContext interface.
IID_IWMSDataContainerVersion GUID identifying an IWMSDataContainerVersion interface.
IID_IWMSPacket GUID identifying an IWMSPacket interface.
IID_IWMSPacketList GUID identifying an IWMSPacketList interface.
IID_IWMSStreamHeader GUID identifying an IWMSStreamHeader interface.
IID_IWMSStreamHeaderList GUID identifying an IWMSStreamHeaderList interface.

ppunk

[out] Pointer to a pointer to the requested 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.

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