# CF_UNICODETEXT
const CF_UNICODETEXT = 13Defines the cf unicodetext constant used by the miniquake2 runtime crash report module.
src/miniquake2/runtime/crash_report.mlProvides miniquake2 runtime crash report facilities for this project.
miniquake2/native.ml as crashnative → src/miniquake2/native.mlminiquake2/runtime/save_metadata.ml as crashmetadata → src/miniquake2/runtime/save_metadata.mlstd/fs.ml as crashfs → ../MiniLangCompilerML/std/fs.ml external dependencyconst CF_UNICODETEXT = 13Defines the cf unicodetext constant used by the miniquake2 runtime crash report module.
extern function CloseClipboard() from "user32.dll" symbol "CloseClipboard" returns boolInvokes the native CloseClipboard entry point used by the miniquake2 runtime crash report module.
Returns: Native bool result produced by the call.
function copyToClipboard(report)Publish the complete report to the Windows clipboard before showing it.
| Parameter | Type | Default | Description |
|---|---|---|---|
report | dynamic | — | report value consumed by this operation. |
const CP_UTF8 = 65001Defines the cp utf8 constant used by the miniquake2 runtime crash report module.
const CRASH_REPORT_PATH = "miniquake2-crash.log"Defines the crash report path constant used by the miniquake2 runtime crash report module.
extern function EmptyClipboard() from "user32.dll" symbol "EmptyClipboard" returns boolInvokes the native EmptyClipboard entry point used by the miniquake2 runtime crash report module.
Returns: Native bool result produced by the call.
function format(caught, version, timestamp)Format one caught MiniLang error without losing its original source origin.
| Parameter | Type | Default | Description |
|---|---|---|---|
caught | dynamic | — | caught value consumed by this operation. |
version | dynamic | — | version value consumed by this operation. |
timestamp | dynamic | — | timestamp value consumed by this operation. |
extern function GlobalAlloc(flags as u32, size as u64) from "kernel32.dll" symbol "GlobalAlloc" returns ptrInvokes the native GlobalAlloc entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
flags | u32 | — | Bit flags controlling the operation. |
size | u64 | — | Size in the units required by the operation. |
Returns: Native ptr result produced by the call.
extern function GlobalFree(memory as ptr) from "kernel32.dll" symbol "GlobalFree" returns ptrInvokes the native GlobalFree entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
memory | ptr | — | memory value consumed by this operation. |
Returns: Native ptr result produced by the call.
extern function GlobalLock(memory as ptr) from "kernel32.dll" symbol "GlobalLock" returns ptrInvokes the native GlobalLock entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
memory | ptr | — | memory value consumed by this operation. |
Returns: Native ptr result produced by the call.
extern function GlobalUnlock(memory as ptr) from "kernel32.dll" symbol "GlobalUnlock" returns boolInvokes the native GlobalUnlock entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
memory | ptr | — | memory value consumed by this operation. |
Returns: Native bool result produced by the call.
const GMEM_MOVEABLE = 2Defines the gmem moveable constant used by the miniquake2 runtime crash report module.
const GMEM_ZEROINIT = 64Defines the gmem zeroinit constant used by the miniquake2 runtime crash report module.
function handle(caught, version)Persist, copy and display one otherwise-unhandled product error.
| Parameter | Type | Default | Description |
|---|---|---|---|
caught | dynamic | — | caught value consumed by this operation. |
version | dynamic | — | version value consumed by this operation. |
const MB_ICONERROR = 16Defines the mb iconerror constant used by the miniquake2 runtime crash report module.
const MB_OK = 0Defines the mb ok constant used by the miniquake2 runtime crash report module.
const MB_SETFOREGROUND = 65536Defines the mb setforeground constant used by the miniquake2 runtime crash report module.
const MB_TOPMOST = 262144Defines the mb topmost constant used by the miniquake2 runtime crash report module.
extern function MessageBoxW(owner as ptr, text as wstr, caption as wstr, style as u32) from "user32.dll" symbol "MessageBoxW" returns i32Invokes the native MessageBoxW entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | ptr | — | owner value consumed by this operation. |
text | wstr | — | Text consumed by the operation. |
caption | wstr | — | caption value consumed by this operation. |
style | u32 | — | style value consumed by this operation. |
Returns: Native i32 result produced by the call.
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 i32Invokes the native MultiByteToWideChar entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
codePage | u32 | — | codePage value consumed by this operation. |
flags | u32 | — | Bit flags controlling the operation. |
source | bytes | — | source value consumed by this operation. |
sourceCount | i32 | — | Number of source to process. |
output | bytes | — | Output collection or buffer populated by the operation. |
outputCount | i32 | — | Number of output to process. |
Returns: Native i32 result produced by the call.
extern function OpenClipboard(owner as ptr) from "user32.dll" symbol "OpenClipboard" returns boolInvokes the native OpenClipboard entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | ptr | — | owner value consumed by this operation. |
Returns: Native bool result produced by the call.
function prepareDesktop()Leave exclusive display mode and release mouse capture before a modal error.
extern function RtlMoveMemoryToPtr(destination as ptr, source as bytes, length as u64) from "kernel32.dll" symbol "RtlMoveMemory" returns voidInvokes the native RtlMoveMemoryToPtr entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
destination | ptr | — | destination value consumed by this operation. |
source | bytes | — | source value consumed by this operation. |
length | u64 | — | length value consumed by this operation. |
extern function SetClipboardData(format as u32, memory as ptr) from "user32.dll" symbol "SetClipboardData" returns ptrInvokes the native SetClipboardData entry point used by the miniquake2 runtime crash report module.
| Parameter | Type | Default | Description |
|---|---|---|---|
format | u32 | — | format value consumed by this operation. |
memory | ptr | — | memory value consumed by this operation. |
Returns: Native ptr result produced by the call.
function utf16Bytes(text)Convert managed UTF-8 text to the NUL-terminated UTF-16 clipboard format.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text consumed by the operation. |