The RemovePrivateCvSymbolic function removes all but public information from the CodeView debug information.
BOOL RemovePrivateCvSymbolic(
IN PCHAR DebugData,
OUT PCHAR *NewDebugData,
OUT LPDWORD NewDebugSize
);
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.
The RemovePrivateCvSymbolic function removes all but public information from the CodeView debug information. Therefore, you can ship the debug symbols for an image without disclosing your data structures or other source information. The user can only get a stack trace, place breakpoints on functions, and dump memory. All but the following CodeView sections are discarded:
It is the responsibility of the caller to free the memory pointed to by the NewDebugData parameter when he is finished.
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