|Microsoft DirectX 9.0|
This topic applies to Windows XP Service Pack 1 only.
The Next method returns a specified number of attributes in the enumeration sequence.
HRESULT Next( ULONG cRequest, STREAMBUFFER_ATTRIBUTE *pStreamBufferAttribute, ULONG *pcReceived );
[in] The number of attributes to retrieve.
[in, out, size_is(cRequest)] Pointer to an array of size cRequest. The array is filled with STREAMBUFFER_ATTRIBUTE structures.
[out] Pointer to a variable that receives the number of attributes that are returned in the pStreamBufferAttribute array. This parameter can be NULL if cRequest is 1.
Returns an HRESULT value. Possible values include the following.
|E_POINTER||Null pointer argument.|
|S_FALSE||Did not retrieve as many attributes as requested (reached the end of the enumeration).|
The caller allocates the array of STREAMBUFFER_ATTRIBUTE structures, but the method allocates buffers for the attributes and the attribute names, which are contained in the pszName and pbAttribute members of each structure. The caller must release those buffers, by calling CoTaskMemFree.