Previous | Next |
The GetConnectionName method retrieves the input name given to the stream.
Syntax
HRESULT GetConnectionName(
WCHAR* pwszInputName,
WORD* pcchInputName
);
Parameters
pwszInputName
[out] Pointer to a wide-character NULL-terminated string containing the input name.
pcchInputName
[in, out] On input, specifies a pointer to a variable containing the length of the pwszInputName 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 pcchInputName parameter is NULL. |
ASF_E_BUFFERTOOSMALL | The name value contained in the pcchInputName parameter is too large for the pwszInputName array. |
See Also
Previous | Next |