SplitSymbols function (imagehlp.h)
Strips symbols from the specified image.
Syntax
BOOL IMAGEAPI SplitSymbols(
[in] PSTR ImageName,
[in] PCSTR SymbolsPath,
[out] PSTR SymbolFilePath,
[in] ULONG Flags
);
Parameters
[in] ImageName
The name of the image from which to split symbols.
[in] SymbolsPath
The subdirectory for storing symbols. This parameter is optional.
[out] SymbolFilePath
The name of the generated symbol file. This file typically has a .dbg extension.
[in] Flags
The information to be split from the image. This parameter can be zero or a combination of the following values.
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 SplitSymbols function should be used when stripping symbols from an image. It will create a symbol file that all compatible debuggers understand. The format is defined in WinNT.h and consists of an image header, followed by the array of section headers, the FPO information, and all debugging symbolic information from the image.
If the SymbolsPath parameter is NULL, the symbol file is stored in the directory where the image exists. Otherwise, it is stored in the subdirectory below SymbolsPath that matches the extension of the image. Using this method reduces the chances of symbol file collision. For example, the symbols for myapp.exe will be in the SymbolsPath\exe directory and the symbols for myapp.dll will be in the SymbolsPath\dll directory.
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
Requirement | Value |
---|---|
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 |