DbgHelpMiniDumpWriteDump(IntPtr, Int32, SafeHandle, MiniDumpType, IntPtr, IntPtr, IntPtr) Method
Writes user-mode minidump information to the specified file.
Namespace: DevCase.Win32.NativeMethodsAssembly: 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
)
<DllImportAttribute("DbgHelp.dll", CallingConvention := CallingConvention.StdCall,
CharSet := CharSet.Unicode, ExactSpelling := true, SetLastError := true>]
Public Shared Function MiniDumpWriteDump (
hProcess As IntPtr,
processId As Integer,
hFile As SafeHandle,
dumpType As MiniDumpType,
expParam As IntPtr,
userStreamParam As IntPtr,
callbackParam As IntPtr
) As Boolean
Dim hProcess As IntPtr
Dim processId As Integer
Dim hFile As SafeHandle
Dim dumpType As MiniDumpType
Dim expParam As IntPtr
Dim userStreamParam As IntPtr
Dim callbackParam As IntPtr
Dim returnValue As Boolean
returnValue = DbgHelp.MiniDumpWriteDump(hProcess,
processId, hFile, dumpType, expParam,
userStreamParam, callbackParam)
public:
[DllImportAttribute(L"DbgHelp.dll", CallingConvention = CallingConvention::StdCall,
CharSet = CharSet::Unicode, ExactSpelling = true, SetLastError = true)]
static bool MiniDumpWriteDump(
IntPtr hProcess,
int processId,
SafeHandle^ hFile,
MiniDumpType dumpType,
IntPtr expParam,
IntPtr userStreamParam,
IntPtr callbackParam
)
[<DllImportAttribute("DbgHelp.dll", CallingConvention = CallingConvention.StdCall,
CharSet = CharSet.Unicode, ExactSpelling = true, SetLastError = true)>]
static member MiniDumpWriteDump :
hProcess : IntPtr *
processId : int *
hFile : SafeHandle *
dumpType : MiniDumpType *
expParam : IntPtr *
userStreamParam : IntPtr *
callbackParam : IntPtr -> bool
No code example is currently available or this language may not be supported.
- 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.
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.