Selects the device at the specified index.
#include "ltms.h"
Language | Syntax |
---|---|
C | HRESULT IltmsDevices_put_Selection(pDevices, newVal) |
C++ | HRESULT put_Selection(newVal) |
Pointer to an IltmsDevices interface.
Zero-based index of the device to select.
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. |
To clear any previous selection for the newVal parameter, use a value of - 1.
Win32, x64.
For a C++ example, refer to Create or Replace Live Stream Example for C++