IMMDeviceEnumeratorGetDevice Method
Retrieves an endpoint device that is specified by an endpoint device-identification string.
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult GetDevice(
string endpointId,
out IMMDevice refDevice
)
<PreserveSigAttribute>
Function GetDevice (
endpointId As String,
<OutAttribute> ByRef refDevice As IMMDevice
) As HResult
Dim instance As IMMDeviceEnumerator
Dim endpointId As String
Dim refDevice As IMMDevice
Dim returnValue As HResult
returnValue = instance.GetDevice(endpointId,
refDevice)
[PreserveSigAttribute]
HResult GetDevice(
[InAttribute] String^ endpointId,
[OutAttribute] IMMDevice^% refDevice
)
[<PreserveSigAttribute>]
abstract GetDevice :
endpointId : string *
refDevice : IMMDevice byref -> HResult
No code example is currently available or this language may not be supported.
- endpointId String
-
The endpoint ID.
- refDevice IMMDevice
-
The IMMDevice interface for the specified device.
HResult
If the method succeeds, it returns
S_OK.
If it fails, it returns an
HResult value.