UpdateDebugInfoFile Function
Uses the specified information to update the corresponding fields in the symbol file.
This function has been superseded by the UpdateDebugInfoFileEx function. Use UpdateDebugInfoFileEx to verify the checksum value.
BOOL UpdateDebugInfoFile( __in PSTR ImageFileName, __in PSTR SymbolPath, __out PSTR DebugFilePath, __in PIMAGE_NT_HEADERS NtHeaders );
Parameters
- ImageFileName
-
The name of the image that is now out of date with respect to its symbol file.
- SymbolPath
-
The path in which to look for the symbol file.
- DebugFilePath
-
A pointer to a buffer that receives the name of the symbol file that was updated.
- NtHeaders
-
A pointer to an IMAGE_NT_HEADERS structure that specifies the new header information.
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 UpdateDebugInfoFile 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.
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
Client |
Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0, Windows Me, Windows 98, or Windows 95. |
---|---|
Server |
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0. |
Header |
Declared in Imagehlp.h. |
Library |
Use Imagehlp.lib. |
DLL |
Requires Imagehlp.dll. |
See Also
ImageHlp FunctionsIMAGE_NT_HEADERS
UpdateDebugInfoFileEx
Send comments about this topic to Microsoft
Build date: 9/25/2007
© 2007 Microsoft Corporation. All rights reserved.