Computer use CLI for AI agents
Rust accessibilityaccessibility-apiai-agentsautomationclicomputer-usecomputer-use-agentcomputer-use-agentsdesktop-automationmacosmcprust
{
"Experiment": "GetFileInformationByHandleEx(FileRemoteProtocolInfo, FILE_INFO_BY_HANDLE_CLASS 13) locality classification",
"Question": "can FileRemoteProtocolInfo distinguish local from remote volumes on this build",
"ControlClass": "FileBasicInfo (class 0) on the same handle, proving the call plumbing",
"OutOfRangeControlClass": "class 55 (past MaximumFileInfoByHandleClass) on the same handle, testing whether ERROR_INVALID_PARAMETER is specific to locality",
"BufferSize": "sizeof(FILE_REMOTE_PROTOCOL_INFO) = 116 bytes",
"LocalTargetsSucceeding": 0,
"RemoteTargetsSucceeding": 3,
"DistinguishesLocalFromRemote": true,
"ErrorCodeIsAmbiguous": 6,
"Targets": [
{
"Label": "local-ntfs-temp-file",
"Target": "<localappdata>\\Temp\\agent-desktop-probe-12-3668\\locality-target.txt",
"DriveTypeName": "DRIVE_FIXED",
"DriveTypeValue": 3,
"PathIsNetworkPath": false,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x20",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": false,
"RemoteError": 87,
"RemoteErrorName": "ERROR_INVALID_PARAMETER",
"RemoteMessage": "The parameter is incorrect",
"StructureVersion": 0,
"StructureSize": 0,
"Protocol": null,
"ProtocolName": null,
"ProtocolMajor": 0,
"ProtocolMinor": 0,
"ProtocolRevision": 0,
"RemoteFlags": null,
"RemoteFlagNames": null
},
{
"Label": "local-ntfs-temp-dir",
"Target": "<localappdata>\\Temp\\agent-desktop-probe-12-3668",
"DriveTypeName": "DRIVE_FIXED",
"DriveTypeValue": 3,
"PathIsNetworkPath": false,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x10",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": false,
"RemoteError": 87,
"RemoteErrorName": "ERROR_INVALID_PARAMETER",
"RemoteMessage": "The parameter is incorrect",
"StructureVersion": 0,
"StructureSize": 0,
"Protocol": null,
"ProtocolName": null,
"ProtocolMajor": 0,
"ProtocolMinor": 0,
"ProtocolRevision": 0,
"RemoteFlags": null,
"RemoteFlagNames": null
},
{
"Label": "local-ntfs-system-file",
"Target": "C:\\Windows\\System32\\notepad.exe",
"DriveTypeName": "DRIVE_FIXED",
"DriveTypeValue": 3,
"PathIsNetworkPath": false,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x20",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": false,
"RemoteError": 87,
"RemoteErrorName": "ERROR_INVALID_PARAMETER",
"RemoteMessage": "The parameter is incorrect",
"StructureVersion": 0,
"StructureSize": 0,
"Protocol": null,
"ProtocolName": null,
"ProtocolMajor": 0,
"ProtocolMinor": 0,
"ProtocolRevision": 0,
"RemoteFlags": null,
"RemoteFlagNames": null
},
{
"Label": "local-ntfs-volume-root",
"Target": "C:\\",
"DriveTypeName": "DRIVE_FIXED",
"DriveTypeValue": 3,
"PathIsNetworkPath": false,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x16",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": false,
"RemoteError": 87,
"RemoteErrorName": "ERROR_INVALID_PARAMETER",
"RemoteMessage": "The parameter is incorrect",
"StructureVersion": 0,
"StructureSize": 0,
"Protocol": null,
"ProtocolName": null,
"ProtocolMajor": 0,
"ProtocolMinor": 0,
"ProtocolRevision": 0,
"RemoteFlags": null,
"RemoteFlagNames": null
},
{
"Label": "local-udf-cdrom-root",
"Target": "D:\\",
"DriveTypeName": "DRIVE_CDROM",
"DriveTypeValue": 5,
"PathIsNetworkPath": false,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x11",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": false,
"RemoteError": 87,
"RemoteErrorName": "ERROR_INVALID_PARAMETER",
"RemoteMessage": "The parameter is incorrect",
"StructureVersion": 0,
"StructureSize": 0,
"Protocol": null,
"ProtocolName": null,
"ProtocolMajor": 0,
"ProtocolMinor": 0,
"ProtocolRevision": 0,
"RemoteFlags": null,
"RemoteFlagNames": null
},
{
"Label": "local-udf-cdrom-file",
"Target": "D:\\autorun.inf",
"DriveTypeName": "DRIVE_CDROM",
"DriveTypeValue": 5,
"PathIsNetworkPath": false,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x1",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": false,
"RemoteError": 87,
"RemoteErrorName": "ERROR_INVALID_PARAMETER",
"RemoteMessage": "The parameter is incorrect",
"StructureVersion": 0,
"StructureSize": 0,
"Protocol": null,
"ProtocolName": null,
"ProtocolMajor": 0,
"ProtocolMinor": 0,
"ProtocolRevision": 0,
"RemoteFlags": null,
"RemoteFlagNames": null
},
{
"Label": "unc-loopback-share-root",
"Target": "\\\\localhost\\C$\\",
"DriveTypeName": "DRIVE_REMOTE",
"DriveTypeValue": 4,
"PathIsNetworkPath": true,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x16",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": true,
"RemoteError": 0,
"RemoteErrorName": "ERROR_SUCCESS",
"RemoteMessage": "",
"StructureVersion": 4,
"StructureSize": 116,
"Protocol": "0x00020000",
"ProtocolName": "WNNC_NET_SMB",
"ProtocolMajor": 3,
"ProtocolMinor": 1,
"ProtocolRevision": 1,
"RemoteFlags": "0x00000021",
"RemoteFlagNames": "LOOPBACK|MUTUAL_AUTH"
},
{
"Label": "unc-loopback-file",
"Target": "\\\\localhost\\C$\\Windows\\System32\\notepad.exe",
"DriveTypeName": "DRIVE_REMOTE",
"DriveTypeValue": 4,
"PathIsNetworkPath": true,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x20",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": true,
"RemoteError": 0,
"RemoteErrorName": "ERROR_SUCCESS",
"RemoteMessage": "",
"StructureVersion": 4,
"StructureSize": 116,
"Protocol": "0x00020000",
"ProtocolName": "WNNC_NET_SMB",
"ProtocolMajor": 3,
"ProtocolMinor": 1,
"ProtocolRevision": 1,
"RemoteFlags": "0x00000021",
"RemoteFlagNames": "LOOPBACK|MUTUAL_AUTH"
},
{
"Label": "unc-ip-loopback-file",
"Target": "\\\\127.0.0.1\\C$\\Windows\\System32\\notepad.exe",
"DriveTypeName": "DRIVE_REMOTE",
"DriveTypeValue": 4,
"PathIsNetworkPath": true,
"OpenSucceeded": true,
"OpenError": 0,
"OpenErrorName": "ERROR_SUCCESS",
"ControlCallSucceeded": true,
"ControlErrorName": "ERROR_SUCCESS",
"ControlDetail": "FileBasicInfo.FileAttributes=0x20",
"InfoClass": 13,
"OutOfRangeClassSucceeded": false,
"OutOfRangeClassError": 87,
"OutOfRangeClassErrorName": "ERROR_INVALID_PARAMETER",
"RemoteCallSucceeded": true,
"RemoteError": 0,
"RemoteErrorName": "ERROR_SUCCESS",
"RemoteMessage": "",
"StructureVersion": 4,
"StructureSize": 116,
"Protocol": "0x00020000",
"ProtocolName": "WNNC_NET_SMB",
"ProtocolMajor": 3,
"ProtocolMinor": 1,
"ProtocolRevision": 1,
"RemoteFlags": "0x00000021",
"RemoteFlagNames": "LOOPBACK|MUTUAL_AUTH"
}
]
}