ID3D11DeviceChild::GetPrivateData Method

Get application-defined data from a device child.

Syntax

public:
HRESULT GetPrivateData(
         REFGUID guid,
         UINT *pDataSize,
         void *pData
)  

Parameters

guid
Type: REFGUID 

[in] Guid associated with the data.

pDataSize
Type: UINT *

[in, out] A pointer to a variable that on input contains the size, in bytes, of the buffer that pData points to, and on output contains the size, in bytes, of the amount of data that GetPrivateData retrieved.

pData
Type: void *

[out, optional] A pointer to a buffer that GetPrivateData fills with data from the device child if pDataSize points to a value that specifies a buffer large enough to hold the data.

Return value

Type: HRESULT 

This method returns one of the codes described in the topic Direct3D 11 return codes.

Remarks

The data stored in the device child is set by calling ID3D11DeviceChild::SetPrivateData.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3D11DeviceChild

ID3D11DeviceChild Members