Previous | Next |
The GetStreamName method retrieves the stream name.
Syntax
HRESULT GetStreamName(
WCHAR* pwszStreamName,
WORD* pcchStreamName
);
Parameters
pwszStreamName
[out] Pointer to a wide-character null-terminated string containing the stream name.
pcchStreamName
[in, out] On input, specifies a pointer to a variable containing the length of the pwszStreamName array in wide characters (two bytes). On output, and if the method succeeds, the variable contains the actual length of the name.
Return Values
If the method succeeds, it returns S_OK. If it fails, it returns an HRESULT error code.
Return code | Description |
E_INVALIDARG | The pcchStreamName parameter is NULL. |
ASF_E_BUFFERTOOSMALL | The name value contained in the pcchStreamName parameter is too large for the pwszInputName array. |
See Also
Previous | Next |