SymSrvStoreSupplement function

Stores a file in the specified supplement to a symbol store. The file is typically associated with a file in the symbol server.

Syntax

PCSTR IMAGEAPI SymSrvStoreSupplement(
  HANDLE hProcess,
  PCSTR  SrvPath,
  PCSTR  Node,
  PCSTR  File,
  DWORD  Flags
);

Parameters

hProcess

A handle to a process. This handle must have been previously passed to the SymInitialize function.

SrvPath

TBD

Node

The symbol file associated with the supplemental file.

File

The name of the file.

Flags

If this parameter is SYMSTOREOPT_COMPRESS, the file is compressed in the symbol store. Currently, there are no other supported values.

Return Value

If the function succeeds, the return value is the fully qualified path for the supplemental file.

If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.

Remarks

An important use for this function is to store delta files. For more information, see SymSrvDeltaName.

This function returns a pointer to a buffer that may be reused by another function. Therefore, be sure to copy the data returned to another buffer immediately.

The symbol server stores supplemental files with the same extension in a common directory. For example, Sup1.xml would be stored in the following directory: SymPath\supplement<i>Node\xml.

The administrator of a store can prevent users from writing supplemental files by creating a read-only file in the root of the store named Supplement. Alternatively, the administrator can create the supplement directory and use ACLs to control access.

All DbgHelp 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.

To call the Unicode version of this function, define DBGHELP_TRANSLATE_TCHAR.

Requirements

   
Target Platform Windows
Header dbghelp.h
Library Dbghelp.lib
DLL Dbghelp.dll
Redistributable DbgHelp.dll 6.3 or later

See Also

DbgHelp Functions

SymSrvGetSupplement