ID3DXFileSaveData::GetName

Retrieves the name of this ID3DXFileSaveData file data node.

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 Values

If the method succeeds, the return value is S_OK. If the method fails, the following value will be returned: D3DXFERR_BADVALUE.

Remarks

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

Requirements

Header: Declared in D3dx9xof.h.