Retrieves the index of the currently selected device.
#include "ltms.h"
Language | Syntax |
---|---|
C | HRESULT IltmsDevices_get_Selection(pDevices, pVal) |
C++ | HRESULT get_Selection(pVal) |
Pointer to an IltmsDevices interface.
Pointer to a variable that receives the zero-based index of the currently selected device. A value of -1 indicates that no device is currently selected.
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. |
Win32, x64.
For a C++ example, refer to Print Live Streams Example For C++