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.
Get application-defined data from a device.
HRESULT GetPrivateData(
[in] REFGUID guid,
[in, out] UINT *pDataSize,
[out, optional] void *pData
);
[in] guid
Type: REFGUID
Guid associated with the data.
[in, out] pDataSize
Type: 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.
[out, optional] pData
Type: void*
A pointer to a buffer that GetPrivateData fills with data from the device if pDataSize points to a value that specifies a buffer large enough to hold the data.
Type: HRESULT
This method returns one of the codes described in the topic Direct3D 11 Return Codes.
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.
Requirement | Value |
---|---|
Target Platform | Windows |
Header | d3d11.h |
Library | D3D11.lib |
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