?/TD>
Microsoft DirectX 9.0

ID3DXInclude::Close Method


Closes an include file. If ID3DXInclude::Open was successful, ID3DXInclude::Close is guaranteed to be called before the application programming interface (API) using this interface returns.

Syntax

HRESULT Close(      

    LPCVOID pData );

Parameters

pData
[in] Pointer that was returned by the corresponding ID3DXInclude::Open call.

Return Value

The return values of this method are implemented by an application programmer. In general, the method show be programmed to return D3D_OK if no error occurs. Otherwise the method should return any error message which will cause the calling function (such as D3DXCompileShader) to return an error. One of the most common error returns is E_OUTOFMEMORY.



See Also

ID3DXInclude::Open


© 2002 Microsoft Corporation. All rights reserved.