Microsoft DirectX 8.1 (Visual Basic)

Direct3DResource8.GetPrivateData

Copies the private data associated with the resource to a provided buffer.

object.GetPrivateData( _ 
    RefGuid As DXGUID, _ 
    Data As Any, _ 
    SizeOfData As Long)

Parts

object
Object expression that resolves to a Direct3DResource8 object.
RefGuid
A DXGUID type, the globally unique identifier that identifies the private data to retrieve.
Data
A previously allocated buffer to fill with the requested private data if the call succeeds. The application calling this method is responsible for allocating and releasing this buffer.
SizeOfData
Size of the buffer at Data, in bytes. If this value is less than the actual size of the private data (such as 0), the method sets this parameter to the required buffer size, and the method returns D3DERR_MOREDATA.

Error Codes

If the method fails, an error is raised and Err.Number can be set to one of the following values.

D3DERR_INVALIDCALL
D3DERR_MOREDATA
D3DERR_NOTFOUND

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Applies To

This method applies to the following classes, which implement methods from Direct3DResource8.

See Also

Direct3DResource8.FreePrivateData, Direct3DResource8.SetPrivateData