SymSrvStoreSupplement Function

Debug Help Library

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.

PCTSTR WINAPI SymSrvStoreSupplement(
  __in          HANDLE hProcess,
  __in          PCTSTR SymPath,
  __in          PCTSTR Node,
  __in          PCTSTR File,
  __in          DWORD Flags
);

Parameters

hProcess

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

SymPath

The path to the symbol store.

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\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

Redistributable

Requires DbgHelp.dll 6.3 or later.

Header

Declared in DbgHelp.h.

Library

Use Dbghelp.lib.

DLL

Requires Dbghelp.dll.

Unicode

Implemented as SymSrvStoreSupplementW (Unicode) and SymSrvStoreSupplement (ANSI).

See Also

DbgHelp FunctionsSymSrvGetSupplement


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.