ID3D11DeviceChild::GetPrivateData Method
Get application-defined data from a device child.
Syntax
HRESULT GetPrivateData(
[in] REFGUID guid,
[in, out] UINT *pDataSize,
[out] void *pData
);
Parameter
guid [in]
Typ: REFGUIDGuid associated with the data.
pDataSize [in, out]
Typ: UINT*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 [out]
Typ: void*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.
Rückgabewert
Typ: HRESULT
This method returns one of the codes described in the topic Direct3D 11 Return Codes.
Hinweise
The data stored in the device child is set by calling ID3D11DeviceChild::SetPrivateData.
Anforderungen
Header |
D3D11.h |
Bibliothek |
D3D11.lib |