Skip to content

Computer use CLI for AI agents

186 B
Raw Blame
function Get-Win32ErrorOrThrow {
    param($Ok)
    if (-not $Ok) {
        $error = [System.Runtime.InteropServices.Marshal]::GetLastWin32Error()
        throw "failed: $error"
    }
}