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 GetAllPackets method retrieves an array containing all the packets in the packet list.
HRESULT GetAllPackets(
DWORD dwFirstPacket,
DWORD dwMaxNumPackets,
WMSPACKETDESC* pPacketDesc,
IWMSPacket** ppPacket,
DWORD* pdwDescNum,
DWORD dwExFlags
);
Arguments
dwFirstPacket |
[in] DWORD containing the index of the first packet. |
dwMaxNumPackets |
[in] DWORD containing the maximum number of packets to retrieve. |
pPacketDesc |
[out] Pointer to a WMSPACKETDESC structure describing the packet. |
ppPacket |
[out] Pointer to a pointer to an IWMSPacketIWMSPacket Interface containing the first returned packet. |
pdwDescNum |
[out] Pointer to a DWORD containing the number of packet descriptors returned. |
dwExFlags |
[in] Member of the WMS_PACKET_LIST_EX_FLAGS enumeration type. This must be a bitwise OR of one or more of the following values. |
Value |
Description |
|---|---|
WMS_NO_ADDREF |
Reference reference counts should not be used with this packet. |
WMS_PACKET_NO_ADDREF |
The reference count for the packet should not be incremented. |
WMS_PACKET_NO_RELEASE |
The packet should not be released regardless of reference count. |
WMS_PLIST_BUFFER_NO_ADDREF |
The reference count for the buffer should not be incremented. |
WMS_PLIST_BUFFER_NO_RELEASE |
The buffer should not be released regardless of reference count. |
WMS_PLIST_NO_ADDREF |
The reference count for the packet list should not be incremented. |
Return Value
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code |
Number |
Description |
|---|---|---|
E_INVALIDARG |
0x80070057 |
ppPacket is null. |
Requirements
Header: wmspacket.h.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.