MiniQuake2

src/miniquake2/runtime/crash_report.ml

Provides miniquake2 runtime crash report facilities for this project.

Package
miniquake2.runtime.crash_report
Reachable
Yes

Imports

Declarations

CF_UNICODETEXT

const CF_UNICODETEXT = 13

Defines the cf unicodetext constant used by the miniquake2 runtime crash report module.

View source

CloseClipboard

extern function CloseClipboard() from "user32.dll" symbol "CloseClipboard" returns bool

Invokes the native CloseClipboard entry point used by the miniquake2 runtime crash report module.

Returns: Native bool result produced by the call.

View source

copyToClipboard

function copyToClipboard(report)

Publish the complete report to the Windows clipboard before showing it.

ParameterTypeDefaultDescription
reportdynamic—report value consumed by this operation.

View source

CP_UTF8

const CP_UTF8 = 65001

Defines the cp utf8 constant used by the miniquake2 runtime crash report module.

View source

CRASH_REPORT_PATH

const CRASH_REPORT_PATH = "miniquake2-crash.log"

Defines the crash report path constant used by the miniquake2 runtime crash report module.

View source

EmptyClipboard

extern function EmptyClipboard() from "user32.dll" symbol "EmptyClipboard" returns bool

Invokes the native EmptyClipboard entry point used by the miniquake2 runtime crash report module.

Returns: Native bool result produced by the call.

View source

format

function format(caught, version, timestamp)

Format one caught MiniLang error without losing its original source origin.

ParameterTypeDefaultDescription
caughtdynamic—caught value consumed by this operation.
versiondynamic—version value consumed by this operation.
timestampdynamic—timestamp value consumed by this operation.

View source

GlobalAlloc

extern function GlobalAlloc(flags as u32, size as u64) from "kernel32.dll" symbol "GlobalAlloc" returns ptr

Invokes the native GlobalAlloc entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
flagsu32—Bit flags controlling the operation.
sizeu64—Size in the units required by the operation.

Returns: Native ptr result produced by the call.

View source

GlobalFree

extern function GlobalFree(memory as ptr) from "kernel32.dll" symbol "GlobalFree" returns ptr

Invokes the native GlobalFree entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
memoryptr—memory value consumed by this operation.

Returns: Native ptr result produced by the call.

View source

GlobalLock

extern function GlobalLock(memory as ptr) from "kernel32.dll" symbol "GlobalLock" returns ptr

Invokes the native GlobalLock entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
memoryptr—memory value consumed by this operation.

Returns: Native ptr result produced by the call.

View source

GlobalUnlock

extern function GlobalUnlock(memory as ptr) from "kernel32.dll" symbol "GlobalUnlock" returns bool

Invokes the native GlobalUnlock entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
memoryptr—memory value consumed by this operation.

Returns: Native bool result produced by the call.

View source

GMEM_MOVEABLE

const GMEM_MOVEABLE = 2

Defines the gmem moveable constant used by the miniquake2 runtime crash report module.

View source

GMEM_ZEROINIT

const GMEM_ZEROINIT = 64

Defines the gmem zeroinit constant used by the miniquake2 runtime crash report module.

View source

handle

function handle(caught, version)

Persist, copy and display one otherwise-unhandled product error.

ParameterTypeDefaultDescription
caughtdynamic—caught value consumed by this operation.
versiondynamic—version value consumed by this operation.

View source

MB_ICONERROR

const MB_ICONERROR = 16

Defines the mb iconerror constant used by the miniquake2 runtime crash report module.

View source

MB_OK

const MB_OK = 0

Defines the mb ok constant used by the miniquake2 runtime crash report module.

View source

MB_SETFOREGROUND

const MB_SETFOREGROUND = 65536

Defines the mb setforeground constant used by the miniquake2 runtime crash report module.

View source

MB_TOPMOST

const MB_TOPMOST = 262144

Defines the mb topmost constant used by the miniquake2 runtime crash report module.

View source

MessageBoxW

extern function MessageBoxW(owner as ptr, text as wstr, caption as wstr, style as u32) from "user32.dll" symbol "MessageBoxW" returns i32

Invokes the native MessageBoxW entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
ownerptr—owner value consumed by this operation.
textwstr—Text consumed by the operation.
captionwstr—caption value consumed by this operation.
styleu32—style value consumed by this operation.

Returns: Native i32 result produced by the call.

View source

MultiByteToWideChar

extern function MultiByteToWideChar(codePage as u32, flags as u32, source as bytes, sourceCount as i32, output as bytes, outputCount as i32) from "kernel32.dll" symbol "MultiByteToWideChar" returns i32

Invokes the native MultiByteToWideChar entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
codePageu32—codePage value consumed by this operation.
flagsu32—Bit flags controlling the operation.
sourcebytes—source value consumed by this operation.
sourceCounti32—Number of source to process.
outputbytes—Output collection or buffer populated by the operation.
outputCounti32—Number of output to process.

Returns: Native i32 result produced by the call.

View source

OpenClipboard

extern function OpenClipboard(owner as ptr) from "user32.dll" symbol "OpenClipboard" returns bool

Invokes the native OpenClipboard entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
ownerptr—owner value consumed by this operation.

Returns: Native bool result produced by the call.

View source

prepareDesktop

function prepareDesktop()

Leave exclusive display mode and release mouse capture before a modal error.

View source

RtlMoveMemoryToPtr

extern function RtlMoveMemoryToPtr(destination as ptr, source as bytes, length as u64) from "kernel32.dll" symbol "RtlMoveMemory" returns void

Invokes the native RtlMoveMemoryToPtr entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
destinationptr—destination value consumed by this operation.
sourcebytes—source value consumed by this operation.
lengthu64—length value consumed by this operation.

View source

SetClipboardData

extern function SetClipboardData(format as u32, memory as ptr) from "user32.dll" symbol "SetClipboardData" returns ptr

Invokes the native SetClipboardData entry point used by the miniquake2 runtime crash report module.

ParameterTypeDefaultDescription
formatu32—format value consumed by this operation.
memoryptr—memory value consumed by this operation.

Returns: Native ptr result produced by the call.

View source

utf16Bytes

function utf16Bytes(text)

Convert managed UTF-8 text to the NUL-terminated UTF-16 clipboard format.

ParameterTypeDefaultDescription
textdynamic—Text consumed by the operation.

View source