Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Gets the value of the specified property by index. This is a template overload. See Remarks.
HRESULT GetValue(
U index,
[out] BYTE *data,
UINT32 dataSize
);
index
Type: U
The index of the property from which the data is to be obtained.
[out] data
Type: BYTE*
When this method returns, contains a pointer to the data requested.
dataSize
Type: UINT32
The number of bytes in the data to be retrieved.
Type: HRESULT
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
HRESULT | Description |
---|---|
S_OK | No error occurred. |
D2DERR_INVALID_PROPERTY | The specified property does not exist. |
E_OUTOFMEMORY | Failed to allocate necessary memory. |
D3DERR_OUT_OF_VIDEO_MEMORY | Failed to allocate required video memory. |
E_INVALIDARG | One or more arguments are invalid. |
E_FAIL | Unspecified failure. |
template<typename U> HRESULT GetValue( U index, _Out_writes_(dataSize) BYTE *data, UINT32 dataSize ) CONST;
Requirement | Value |
---|---|
Minimum supported client | Windows 8 and Platform Update for Windows 7 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 and Platform Update for Windows Server 2008 R2 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | d2d1_1.h |
Library | D2d1.lib |
DLL | D2d1.dll |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today