Platform SDK: Debugging and Error Handling

SetImageConfigInformation

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

BOOL SetImageConfigInformation(
  PLOADED_IMAGE LoadedImage,                               
  PIMAGE_LOAD_CONFIG_DIRECTORY ImageConfigInformation  
);

Parameters

LoadedImage
[in] Pointer to a LOADED_IMAGE structure that is returned from a call to MapAndLoad or LoadImage.
ImageConfigInformation
[in] Pointer to an IMAGE_LOAD_CONFIG_DIRECTORY structure.

Return Values

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 GetImageConfigInformation function locates and returns the load configuration data of an image.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
  Header: Declared in Imagehlp.h.
  Library: Use Imagehlp.lib.

See Also

Image Help Library Overview, ImageHlp Functions, GetImageConfigInformation, IMAGE_LOAD_CONFIG_DIRECTORY, LOADED_IMAGE