Export (0) Print
Expand All

ID3D11Device::GetPrivateData method

Get application-defined data from a device.

Syntax


HRESULT GetPrivateData(
  [in]       REFGUID guid,
  [in, out]  UINT *pDataSize,
  [out]      void *pData
);

Parameters

guid [in]

Type: REFGUID

Guid associated with the data.

pDataSize [in, out]

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.

pData [out]

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.

Return value

Type: HRESULT

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

Remarks

Windows Phone 8: This API is supported.

Requirements

Header

D3D11.h

Library

D3D11.lib

 

 

Community Additions

ADD
Show:
© 2014 Microsoft