Retrieves the device's descriptive name.
#include "ltms.h"
| Language | Syntax |
|---|---|
| C | HRESULT IltmsDevice_get_FriendlyName(pDevice, pVal) |
| C++ | HRESULT get_FriendlyName(pVal) |
Pointer to an IltmsDevice interface.
Pointer to a character string containing the device's friendly name.
| Value | Meaning |
|---|---|
| S_OK | The function was successful. |
| <> S_OK | An error occurred. Refer to the Error Codes or the HRESULT error codes in the DirectShow documentation. |
The returned name is not unique. However, it is ideal for presenting a descriptive name in user interfaces.
If the function succeeds, the caller must free the returned BSTR by calling the SysFreeString function.
Win32, x64.
For a C++ example, refer to Print Live Streams Example For C++