Skip to content

Latest commit

 

History

History
106 lines (87 loc) · 4.02 KB

nf-devicetopology-idevicespecificproperty-getvalue.md

File metadata and controls

106 lines (87 loc) · 4.02 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:devicetopology.IDeviceSpecificProperty.GetValue
IDeviceSpecificProperty::GetValue (devicetopology.h)
The GetValue method gets the current value of the device-specific property.
GetValue
GetValue method [Core Audio]
GetValue method [Core Audio]
IDeviceSpecificProperty interface
IDeviceSpecificProperty interface [Core Audio]
GetValue method
IDeviceSpecificProperty.GetValue
IDeviceSpecificProperty::GetValue
IDeviceSpecificPropertyGetValue
coreaudio.idevicespecificproperty_getvalue
devicetopology/IDeviceSpecificProperty::GetValue
coreaudio\idevicespecificproperty_getvalue.htm
CoreAudio
07608b42-972c-4d5a-9e1c-5d9060f16644
12/05/2018
GetValue, GetValue method [Core Audio], GetValue method [Core Audio],IDeviceSpecificProperty interface, IDeviceSpecificProperty interface [Core Audio],GetValue method, IDeviceSpecificProperty.GetValue, IDeviceSpecificProperty::GetValue, IDeviceSpecificPropertyGetValue, coreaudio.idevicespecificproperty_getvalue, devicetopology/IDeviceSpecificProperty::GetValue
devicetopology.h
Windows
Windows Vista [desktop apps only]
Windows Server 2008 [desktop apps only]
Windows
19H1
IDeviceSpecificProperty::GetValue
devicetopology/IDeviceSpecificProperty::GetValue
c++
APIRef
kbSyntax
COM
Devicetopology.h
IDeviceSpecificProperty.GetValue

IDeviceSpecificProperty::GetValue

-description

The GetValue method gets the current value of the device-specific property.

-parameters

-param pvValue [out]

Pointer to a caller-allocated buffer into which the method writes the property value.

-param pcbValue

[inout] Pointer to a DWORD variable that specifies the size in bytes of the property value. On entry, *pcbValue contains the size of the caller-allocated buffer (or 0 if pvValue is NULL). Before returning, the method writes the actual size of the property value written to the buffer (or the required size if the buffer is too small or if pvValue is NULL).

-returns

If the method succeeds, it returns S_OK. If it fails, possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
E_POINTER
Pointer pcbValue is NULL.
HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER)
The buffer pointed to by parameter pvValue is too small to contain the property value, or pvValue is NULL and the size of the property value is fixed rather than variable. For information about this macro, see the Windows SDK documentation.

-remarks

If the size of the property value is variable rather than fixed, the caller can obtain the required buffer size by calling GetValue with parameter pvValue = NULL and *pcbValue = 0. The method writes the required buffer size to *pcbValue. With this information, the caller can allocate a buffer of the required size and call GetValue a second time to obtain the property value.

If the caller-allocated buffer is too small to hold the property value, GetValue writes the required buffer size to *pcbValue and returns an error status code. In this case, it writes nothing to the buffer pointed by pvValue.

-see-also

IDeviceSpecificProperty Interface