Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The AllocIWMSPacketList method allocates an IWMSPacketListIWMSPacketList Object (Visual Basic .NET).
IWMSClassObject.AllocIWMSPacketList( ByRef riid As Guid,
ByRef ppunk As IntPtr
)
Arguments
Reference to a Guid specifying the data structure IID. This must be IID_IWMSPacketList. |
|
Reference to an IntPtr containing a newly created IWMSPacketList object. |
Return Value
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
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.