IWMSClassObject.AllocIWMSPacketList (Visual Basic .NET)

banner art

Previous Next

IWMSClassObject.AllocIWMSPacketList (Visual Basic .NET)

The AllocIWMSPacketList method allocates an IWMSPacketList object.

Syntax

  

Parameters

riid

Reference to a Guid specifying the data structure IID. This must be IID_IWMSPacketList.

ppunk

Reference to an IntPtr containing a newly created IWMSPacketList object.

Return Values

This method does not return a value.

If this method fails, it throws an exception.

Number Description
0x80070057 ppunk is null.
0x8007000E There is insufficient memory to complete the function.

Example Code

Dim PacketList As IWMSPacketList
Dim pUnknown As IntPtr

Try
    m_ClassFactory.AllocIWMSPacketList( _
                                 GetType(IWMSPacketList).GUID, _
                                 pUnknown)
    PacketList = Marshal.GetTypedObjectForIUnknown(pUnknown, _
                                                  GetType(IWMSPacketList))

Catch e As Exception
    ' TODO: HAndle exceptions.
End Try

Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

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

See Also

Previous Next