d3d9.dllGetName
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXFileSaveData::GetName Method


Retrieves the name of this ID3DXFileSaveData file data node.

Syntax

HRESULT GetName(      

    LPSTR szName,     SIZE_T *puiSize );

Parameters

szName
[in] Address of a pointer to receive the name of this file data node.

If this parameter is NULL, then puiSize will return the size of the string. If szName points to valid memory, the name of this file data node will be copied into szName up to the number of characters given by puiSize.
puiSize
[in, out] Pointer to the size of the string that represents the name of this file data node. This parameter can be NULL if szName provides a reference to the name.

This parameter will return the size of the string if szName is NULL.

Return Value

If the method succeeds, the return value is S_OK.

If the method fails, the following value will be returned.

D3DXFERR_BADVALUEA variable is outside its expected range; typically returned when an object pointer is invalid.


Remarks

For this method to succeed, either szName or puiSize must be non-NULL.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.