|Microsoft DirectX 9.0|
Opens an include file.
LPCSTR pName, LPCVOID *ppData, UINT *pBytes );
- [in] Name of the include file.
- [in] Pointer to the returned buffer that contains the include directives. This pointer remains valid until ID3DXInclude::Close is called.
- [out] Number of bytes returned in ppData.
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.