SymSrvStoreFile Function
Stores a file in the specified symbol store.
PCTSTR WINAPI SymSrvStoreFile( __in HANDLE hProcess, __in PCTSTR SrvPath, __in PCTSTR File, __in DWORD Flags );
Parameters
- hProcess
-
A handle to a process. This handle must have been previously passed to the SymInitialize function.
- SrvPath
-
The symbol store.
- File
-
The name of the file.
- Flags
-
The flags that control the function. This parameter can be one of the following values.
Value Meaning SYMSTOREOPT_COMPRESS
0x01Compress the file.
SYMSTOREOPT_OVERWRITE
0x02Overwrite the file if it exists.
SYMSTOREOPT_PASS_IF_EXISTS
0x40Do not report an error if the file already exists in the symbol store.
SYMSTOREOPT_POINTER
0x08Store in File.ptr.
SYMSTOREOPT_RETURNINDEX
0x04Return the index only.
Return Value
If the function succeeds, the return value is a pointer to a null-terminated string that specifies the full-qualified path to the stored file.
If the function fails, the return value is NULL. To retrieve extended error information, call GetLastError.
Remarks
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.
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.
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 SymSrvStoreFileW (Unicode) and SymSrvStoreFile (ANSI). |
See Also
Send comments about this topic to Microsoft
Build date: 9/25/2007
© 2007 Microsoft Corporation. All rights reserved.