Kernel32WerRegisterMemoryBlock Method
Registers a memory block to be collected when WER creates an error report.
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("Kernel32.dll", ExactSpelling = true)]
public static HResult WerRegisterMemoryBlock(
IntPtr address,
uint size
)
<DllImportAttribute("Kernel32.dll", ExactSpelling := true>]
Public Shared Function WerRegisterMemoryBlock (
address As IntPtr,
size As UInteger
) As HResult
Dim address As IntPtr
Dim size As UInteger
Dim returnValue As HResult
returnValue = Kernel32.WerRegisterMemoryBlock(address,
size)
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true)]
static HResult WerRegisterMemoryBlock(
IntPtr address,
unsigned int size
)
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true)>]
static member WerRegisterMemoryBlock :
address : IntPtr *
size : uint32 -> HResult
No code example is currently available or this language may not be supported.
- address IntPtr
-
The starting address of the memory block.
- size UInt32
-
The size of the memory block, in bytes.
The maximum value for this parameter is WER_MAX_MEM_BLOCK_SIZE bytes.
HResult
Returns
S_OK on success, or an
HResult error code on failure.