This topic has not yet been rated - Rate this topic

ID3D10DeviceChild::SetPrivateData method

Set application-defined data to a device child and associate that data with an application-defined guid.

Syntax


HRESULT SetPrivateData(
  [in]  REFGUID guid,
  [in]  UINT DataSize,
  [in]  const void *pData
);

Parameters

guid [in]

Type: REFGUID

Guid associated with the data.

DataSize [in]

Type: UINT

Size of the data.

pData [in]

Type: const void*

Pointer to the data to be stored with this device child. If pData is NULL, DataSize must also be 0, and any data previously associated with the specified guid will be destroyed.

Return value

Type: HRESULT

This method returns one of the following Direct3D 10 Return Codes.

Remarks

The data stored in the device child with this method can be retrieved with ID3D10DeviceChild::GetPrivateData.

Requirements

Header

D3D10.h

Library

D3D10.lib

See also

ID3D10DeviceChild Interface

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.