DbgHelpMiniDumpWriteDump(IntPtr, Int32, SafeHandle, MiniDumpType, IntPtr, IntPtr, IntPtr) Method

Writes user-mode minidump information to the specified file.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("DbgHelp.dll", CallingConvention = CallingConvention.StdCall, 
	CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)]
public static bool MiniDumpWriteDump(
	IntPtr hProcess,
	int processId,
	SafeHandle hFile,
	MiniDumpType dumpType,
	IntPtr expParam,
	IntPtr userStreamParam,
	IntPtr callbackParam
)

Parameters

hProcess  IntPtr
A handle to the process for which the information is to be generated.

This handle must have QueryInformation and VirtualMemoryRead access to the process.

If handle information is to be collected then DuplicateHandle access is also required.

processId  Int32
The identifier of the process for which the information is to be generated.
hFile  SafeHandle
A handle to the file in which the information is to be written.
dumpType  MiniDumpType
The type of information to be generated.
expParam  IntPtr
A pointer to a MiniDumpExceptionInformation structure describing the client exception that caused the minidump to be generated.

If the value of this parameter is Zero, no exception information is included in the minidump file.

userStreamParam  IntPtr
A pointer to a MINIDUMP_USER_STREAM_INFORMATION structure.

If the value of this parameter is Zero, no user-defined information is included in the minidump file.

callbackParam  IntPtr
A pointer to a MINIDUMP_CALLBACK_INFORMATION structure that specifies a callback routine which is to receive extended minidump information.

If the value of this parameter is Zero, no callbacks are performed.

Return Value

Boolean
If the function succeeds, the return value is ; otherwise, the return value is .

To retrieve extended error information, call GetLastWin32Error. Note that the last error will be an HResult value.

Remarks

See Also