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

ID3DXInclude::Close Method


A user-implemented method for closing a shader #include file.

Syntax

HRESULT Close(      

    LPCVOID pData );

Parameters

pData
[in] Pointer to the returned buffer that contains the include directives. This is the pointer that was returned by the corresponding ID3DXInclude::Open call.

Return Value

The user-implemented method should return S_OK. If the callback fails when reading the #include file, the application programming interface (API) that caused the callback to be called will fail. This is one of the following:



Remarks

If ID3DXInclude::Open was successful, ID3DXInclude::Close is guaranteed to be called before the API using this interface returns.

An example implementation of this method is shown in the EffectEdit Sample.

See Also

ID3DXInclude::Open


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