GetImageConfigInformation function (imagehlp.h)

Locates and returns the load configuration data of an image.

Syntax

BOOL IMAGEAPI GetImageConfigInformation(
  [in]  PLOADED_IMAGE                LoadedImage,
  [out] PIMAGE_LOAD_CONFIG_DIRECTORY ImageConfigInformation
);

Parameters

[in] LoadedImage

A pointer to a LOADED_IMAGE structure that is returned from a call to MapAndLoad or ImageLoad.

[out] ImageConfigInformation

A pointer to an IMAGE_LOAD_CONFIG_DIRECTORY structure that receives the configuration information.

If _WIN64 is defined, then IMAGE_LOAD_CONFIG_DIRECTORY is defined as IMAGE_LOAD_CONFIG_DIRECTORY64. However, if _WIN64 is not defined, then IMAGE_LOAD_CONFIG_DIRECTORY is defined as IMAGE_LOAD_CONFIG_DIRECTORY32.

Return value

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE. To retrieve extended error information, call GetLastError.

Remarks

The SetImageConfigInformation function locates and changes the load configuration data of an image.

All ImageHlp functions, such as this one, are single threaded. Therefore, calls from more than one thread to this function will likely result in unexpected behavior or memory corruption. To avoid this, you must synchronize all concurrent calls from more than one thread to this function.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header imagehlp.h
Library Imagehlp.lib
DLL Imagehlp.dll

See also

ImageHlp Functions LOADED_IMAGE SetImageConfigInformation