The UpdateDebugInfoFileEx function takes the information stored in NtHeaders and updates the corresponding fields in the symbol file.
BOOL UpdateDebugInfoFileEx(
IN LPSTR ImageFileName,
IN LPSTR SymbolPath,
OUT LPSTR DebugFilePath,
IN OUT PIMAGE_NT_HEADERS NtHeaders,
IN DWORD OldChecksum
);
If the function succeeds, the return value is TRUE.
If the function fails, the return value is FALSE.
The UpdateDebugInfoFileEx function takes the information stored in the IMAGE_NT_HEADERS structure and updates the corresponding fields in the symbol file. Any time an image file is modified, this function should be called to keep the numbers in sync. Specifically, whenever an image checksum changes, the symbol file should be updated to match.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in imagehlp.h.
Import Library: Use imagehlp.lib.
PE Image Helper (ImageHlp) Overview, ImageHlp Image Modification Functions