Condividi tramite


IDebugProgram2::WriteDump

Writes a dump to a file.

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

Reference

IDebugProgram2