?/TD>
Microsoft DirectX 9.0

ID3DXInclude::Open Method


Opens an include file.

Syntax

HRESULT Open(      

    LPCSTR pName,     LPCVOID *ppData,     UINT *pBytes );

Parameters

pName
[in] Name of the include file.
ppData
[in] Pointer to the returned buffer that contains the include directives. This pointer remains valid until ID3DXInclude::Close is called.
pBytes
[out] Number of bytes returned in ppData.

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::Close


© 2002 Microsoft Corporation. All rights reserved.