Microsoft DirectX 8.1 (C++)

D3DXGetImageInfoFromResource

Retrieves information about a given image in a resource.

HRESULT D3DXGetImageInfoFromResource(
  HMODULE         hSrcModule
  LPCSTR          pSrcResource,
  D3DXIMAGE_INFO* pSrcInfo
);

Parameters

hSrcModule
[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.
pSrcResource
[in] Resource name of image to retrieve information about.
pSrcInfo
[in] Pointer to a D3DXIMAGE_INFO structure to be filled with the description of the data in the source resource.

Return Values

If the function succeeds, the return value is D3D_OK.

If the function fails, the return value can be the following.

D3DERR_INVALIDCALL

Remarks

This functions supports both Unicode and ANSI strings.

Requirements

  Header: Declared in D3dx8tex.h.
  Import Library: Use D3dx8.lib.

See Also

D3DXGetImageInfoFromFile, D3DXGetImageInfoFromFileInMemory