|Microsoft DirectX 9.0|
Retrieves information about a given image in a resource.
HMODULE hSrcModule, LPCTSTR pSrcFile, D3DXIMAGE_INFO *pSrcInfo );
- [in] Module where the resource is loaded. Set this parameter to NULL to specify the module associated with the image that the operating system used to create the current process.
- [in] Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the string data type resolves to LPCSTR. See Remarks.
- [in] Pointer to a D3DXIMAGE_INFO structure to be filled with the description of the data in the source file.
If the function succeeds, the return value is D3D_OK.
If the function fails, the return value can be the following.
D3DERR_INVALIDCALL The method call is invalid. For example, a method's parameter may have an invalid value.
The compiler setting also determines the function version. If Unicode is defined, the function call resolves to D3DXGetImageInfoFromResourceW. Otherwise, the function call resolves to D3DXGetImageInfoFromResourceA because ANSI strings are being used.
Header d3dx9tex.h Import library d3dx9.lib Minimum operating systems Windows 98