MiniDumpReadDumpStream Function

Debug Help Library

MiniDumpReadDumpStream Function

Reads a stream from a user-mode minidump file.

BOOL WINAPI MiniDumpReadDumpStream(
  __in          PVOID BaseOfDump,
  __in          ULONG StreamNumber,
  __out         PMINIDUMP_DIRECTORY* Dir,
  __out         PVOID* StreamPointer,
  __out         ULONG* StreamSize
);

Parameters

BaseOfDump

A pointer to the base of the mapped minidump file. The file should have been mapped into memory using the MapViewOfFile function.

StreamNumber

The type of data to be read from the minidump file. This member can be one of the values in the MINIDUMP_STREAM_TYPE enumeration.

Dir

A pointer to a MINIDUMP_DIRECTORY structure.

StreamPointer

A pointer to the beginning of the minidump stream. The format of this stream depends on the value of StreamNumber. For more information, see MINIDUMP_STREAM_TYPE.

StreamSize

The size of the stream pointed to by StreamPointer, in bytes.

Return Value

If the function succeeds, the return value is TRUE; otherwise, the return value is FALSE.

Remarks

In this context, a data stream is a block of data written to a minidump file.

Requirements

Redistributable

Requires DbgHelp.dll 5.1 or later.

Header

Declared in Dbghelp.h.

Library

Use Dbghelp.lib.

DLL

Requires Dbghelp.dll.

See Also

DbgHelp FunctionsMINIDUMP_DIRECTORY
MINIDUMP_STREAM_TYPE
MiniDumpWriteDump


Send comments about this topic to Microsoft

Build date: 9/25/2007

© 2007 Microsoft Corporation. All rights reserved.