Retrieves information about a given image in a resource.
HRESULT D3DX10GetImageInfoFromResource( _In_ HMODULE hSrcModule, _In_ LPCTSTR pSrcResource, _In_ ID3DX10ThreadPump *pPump, _In_ D3DX10_IMAGE_INFO *pSrcInfo, _Out_ HRESULT *pHResult );
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.
Pointer to a string that specifies the filename. If the compiler settings require Unicode, the data type LPCTSTR resolves to LPCWSTR. Otherwise, the data type resolves to LPCSTR. See Remarks.
Optional thread pump that can be used to load the info asynchronously. Can be NULL. See ID3DX10ThreadPump.
Pointer to a D3DX10_IMAGE_INFO structure to be filled with the description of the data in the source file.
A pointer to the return value. May be NULL. If pPump is not NULL, then pHResult must be a valid memory location until the asynchronous execution completes.
If the function succeeds, the return value is D3D_OK. If the function fails, the return value can be the following: D3DERR_INVALIDCALL
The compiler setting also determines the function version. If Unicode is defined, the function call resolves to D3DX10GetImageInfoFromResourceW. Otherwise, the function call resolves to D3DX10GetImageInfoFromResourceA because ANSI strings are being used.