The D3DX (D3DX 9, D3DX 10, and D3DX 11) utility library is deprecated for Windows 8 and is not supported for Windows Store apps.
Instead of using this function, we recommend that you use the DirectXTex library, GetMetadataFromXXXMemory (where XXX is WIC, DDS, or TGA; WIC doesn't support DDS and TGA; D3DX 9 supported TGA as a common art source format for games).
Get information about an image already loaded into memory.
HRESULT D3DX11GetImageInfoFromMemory( _In_ LPCVOID pSrcData, _In_ SIZE_T SrcDataSize, _In_ ID3DX11ThreadPump *pPump, _In_ D3DX11_IMAGE_INFO *pSrcInfo, _Out_ HRESULT *pHResult );
Pointer to the image in memory.
Size of the image in memory, in bytes.
Optional thread pump that can be used to load the info asynchronously. Can be NULL. See ID3DX11ThreadPump Interface.
Information about the image in memory.
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.
The return value is one of the values listed in Direct3D 11 Return Codes.