{
  "name": "scorpiox-screenshot",
  "version": "1.0.0",
  "description": "Ultra-fast pure C screen capture & region snip engine. Zero external dependencies (in-box OS APIs only). PNG output via vendored stb_image_write.",
  "exports": [
    {
      "name": "screenshot_version",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": []
    },
    {
      "name": "screenshot_last_error",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": []
    },
    {
      "name": "screenshot_list_monitors_json",
      "return": "const char*",
      "csharp_return": "IntPtr",
      "args": []
    },
    {
      "name": "screenshot_capture_all_png",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {"name": "output_file", "type": "const char*", "csharp_type": "string", "marshal": "UnmanagedType.LPUTF8Str"}
      ]
    },
    {
      "name": "screenshot_capture_monitor_png",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {"name": "monitor_index", "type": "int", "csharp_type": "int"},
        {"name": "output_file", "type": "const char*", "csharp_type": "string", "marshal": "UnmanagedType.LPUTF8Str"}
      ]
    },
    {
      "name": "screenshot_capture_region_png",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {"name": "x", "type": "int", "csharp_type": "int"},
        {"name": "y", "type": "int", "csharp_type": "int"},
        {"name": "width", "type": "int", "csharp_type": "int"},
        {"name": "height", "type": "int", "csharp_type": "int"},
        {"name": "output_file", "type": "const char*", "csharp_type": "string", "marshal": "UnmanagedType.LPUTF8Str"}
      ]
    },
    {
      "name": "screenshot_capture_window_png",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {"name": "hwnd_or_xid", "type": "void*", "csharp_type": "IntPtr"},
        {"name": "output_file", "type": "const char*", "csharp_type": "string", "marshal": "UnmanagedType.LPUTF8Str"}
      ]
    },
    {
      "name": "screenshot_capture_region_mem",
      "return": "int",
      "csharp_return": "int",
      "args": [
        {"name": "x", "type": "int", "csharp_type": "int"},
        {"name": "y", "type": "int", "csharp_type": "int"},
        {"name": "width", "type": "int", "csharp_type": "int"},
        {"name": "height", "type": "int", "csharp_type": "int"},
        {"name": "out_png_bytes", "type": "unsigned char**", "csharp_type": "IntPtr (out)"},
        {"name": "out_len", "type": "int*", "csharp_type": "int (out)"}
      ]
    },
    {
      "name": "screenshot_free_mem",
      "return": "void",
      "csharp_return": "void",
      "args": [
        {"name": "ptr", "type": "void*", "csharp_type": "IntPtr"}
      ]
    }
  ]
}
