IDebugClient5::OpenDumpFileWide method

The OpenDumpFileWide method opens a dump file as a debugger target.


HRESULT OpenDumpFileWide(
  PCWSTR  FileName,
  ULONG64 FileHandle



Specifies the name of the dump file to open -- unless FileHandle is not zero, in which case FileName is used only when the engine is queried for the name of the dump file. FileName must include the file name extension. FileName can include a relative or absolute path; relative paths are relative to the directory in which the debugger was started. FileName can also be in the form of a file URL, starting with "file://". If FileName specifies a cabinet (.cab) file, the cabinet file is searched for the first file with extension .kdmp, then .hdmp, then .mdmp, and finally .dmp.


Specifies the file handle of the dump file to open. If FileHandle is zero, FileName is used to open the dump file. Otherwise, if FileName is not NULL, the engine returns it when queried for the name of the dump file. If FileHandle is not zero and FileName is NULL, the engine will return for the file name.

Return Value

This method may also return error values. See Return Values for more details.

Return code Description
The method was successful.


The ASCII version of this method is OpenDumpFile.

Note   The engine doesn't completely attach to the dump file until the WaitForEvent method has been called. When a dump file is created from a process or kernel, information about the last event is stored in the dump file. After the dump file is opened, the next time execution is attempted, the engine will generate this event for the event callbacks. Only then does the dump file become available in the debugging session.
For more information about crash dump files, see Dump-File Targets.


Target Platform Desktop
Header dbgeng.h (include Dbgeng.h)

See Also

.opendump (Open Dump File)