ID3D11DeviceChild::GetPrivateData method (d3d11.h)
Get application-defined data from a device child.
HRESULT GetPrivateData( [in] REFGUID guid, [in, out] UINT *pDataSize, [out, optional] void *pData );
Guid associated with the data.
[in, out] pDataSize
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.
[out, optional] pData
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.
This method returns one of the Direct3D 11 Return Codes.
The data stored in the device child is set by calling ID3D11DeviceChild::SetPrivateData.
If the data returned is a pointer to an IUnknown, or one of its derivative classes, which was previously set by SetPrivateDataInterface, that interface will have its reference count incremented before the private data is returned.
Windows Phone 8: This API is supported.