Share via


IDebugProgram2::WriteDump

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

Writes a dump to a file.

Syntax

HRESULT WriteDump(   
   DUMPTYPE  DumpType,  
   LPCOLESTR pszDumpUrl  
);  
int WriteDump(   
   enum_DUMPTYPE  DumpType,  
   string         pszDumpUrl  
);  

Parameters

DumpType
[in] A value from the DUMPTYPE enumeration that specifies the type of dump, for example, short or long.

pszDumpUrl
[in] The URL to write the dump to. Typically, this is in the form of file://c:\path\filename.ext, but may be any valid URL.

Return Value

If successful, returns S_OK; otherwise, returns an error code.

Remarks

A program dump would typically include the current stack frame, the stack itself, a list of the threads running in the program, and possibly any memory that the program owns.

See Also

IDebugProgram2