XBOX PC Remote Iteration API Error Codes

The following custom HRESULTs are defined by the November preview toolset. They have the WD_E_ prefix; earlier documentation omitted that prefix for some names. Numeric values remain compatible.

Check FAILED(hr) rather than assuming every nonzero value is a failure. Standard HRESULTs and Win32-derived errors can also be returned. Keep the operation result, endpoint version, and diagnostic message when reporting a failure.

Custom error codes

Error Value Meaning
WD_E_BASE 0x8C114000 Reserved base value for GDK custom remote iteration HRESULTs.
WD_E_OUTSIDEGAMEROOT 0x8C114001 The common root alias was not found, or the relative path escapes its root.
WD_E_PROCESSNOTFOUND 0x8C114002 Process not found.
WD_E_INVALIDPIN 0x8C114004 PIN is not in the proper format.
WD_E_INVALIDSSHKEY 0x8C114005 SSH key is not in the expected form.
WD_E_PAIRINGTIMEOUT 0x8C114006 Pairing mode exceeded the maximum allowed time.
WD_E_TOOMANYFAILURES 0x8C114007 Too many failed PIN attempts.
WD_E_CLIENTNOTAUTHORIZED 0x8C114008 Device rejected the client.
WD_E_SERVERNOTAUTHORIZED 0x8C114009 Client rejected the device.
WD_E_SSHKEYTOOLARGE 0x8C11400A SSH key is too large.
WD_E_GAMENOTSUSPENDED 0x8C11400B The specified process cannot be resumed because it is not suspended.
WD_E_GAMENOTRUNNING 0x8C11400C No game process is currently running.
WD_E_GAMEOVERSUSPENDED 0x8C11400D The thread suspend count is not zero.
WD_E_GAMESTILLRUNNING 0x8C11400E Only one game may run at a time.
WD_E_GAMEEXITABANDONED 0x8C11400F Abandoned wait for game to exit; no exit code is available.
WD_E_GAMEFILEPATHNOTEXIST 0x8C114010 Game file path does not exist.
WD_E_SERVERTOOOLD 0x8C114011 The server version is too old for this client.
WD_E_NAMERESOLUTIONFAILED 0x8C114012 Could not resolve the remote machine name.
WD_E_INVALIDADDRESS 0x8C114013 Invalid address.
WD_E_CONNECTIONERROR 0x8C114014 Connection error.
WD_E_LISTENERALREADYRUNNING 0x8C114015 Another listener is already active.
WD_E_ADMIN_REQUIRED 0x8C114016 Administrator privileges are required.
WD_E_INVALIDPIDTID_PAIR 0x8C114018 The given process ID is not associated with the given thread ID.
WD_E_ENDPOINTUPGRADEREQUIRED 0x8C11401A The endpoint must be upgraded to a newer version.
WD_E_ENDPOINTUPGRADERECOMMENDED 0x8C11401B The endpoint should be upgraded to a newer version.
WD_E_CLIENTUPGRADERECOMMENDED 0x8C11401C The client should be upgraded to a newer version.
WD_E_DUPLICATED_COMMONROOT 0x8C11401D A common root alias with the specified name already exists.
WD_E_COMMONROOT_NOTFOUND 0x8C11401E The specified common root alias was not found.
WD_E_TRANSFERINCOMPLETE 0x8C11401F The file transfer did not complete; not all files were copied to the device.
WD_E_TOOLNOTRUNNING 0x8C114020 No tool with the specified process ID is currently running on the device.
WD_E_TOOLEXITABANDONED 0x8C114021 Abandoned wait for tool to exit; the tool may still be running.
WD_E_ENDPOINTSHUTDOWNTIMEOUT 0x8C114022 The endpoint did not release the listener within the shutdown timeout.
WD_E_DEVICE_NOTFOUND 0x8C114023 The requested device was not found in the device catalog.
WD_E_DEVICE_EXISTS 0x8C114024 The requested device already exists in the device catalog.
WD_E_DEVICE_SCHEMA 0x8C114025 The device record uses an unsupported schema version.
WD_E_DEVICE_CORRUPT 0x8C114026 The device record is corrupt or does not match its catalog identity.
WD_E_DEVICE_JSONDEPTH 0x8C114027 The device catalog JSON exceeds the supported nesting depth: 125 levels for property values and 128 levels for stored records.
WD_E_DEVICEID_NOTFOUND 0x8C114028 The requested device or client has no associated local device ID.

Troubleshooting

Scenario Action
Version or protocol mismatch Check client and endpoint versions. Install compatible packages; don't assume an older endpoint supports a newer operation.
Pairing or authorization failure Verify the intended target and pair it again if needed. A saved catalog record or matching last-observed hash isn't proof of current authorization.
Common-root or path error Check /root, the resolved remote path, and the endpoint process environment. A relative path can't escape its selected root.
Incomplete transfer Inspect the destination, resolve the reported read, write, or connection failure, and retry. Don't treat incomplete output as a successful deployment.
Missing or conflicting device record Inspect the local catalog and default device. Rename doesn't overwrite an existing destination record.
Invalid catalog schema, corrupt JSON, or excessive nesting Preserve the affected data for diagnosis and correct it through supported catalog operations. Don't discard all records or pairing state as an automatic recovery step.
Tool launch or endpoint shutdown failure Inspect the associated process and diagnostics. Elevation requires approval on the target; a cancelled prompt isn't a successful launch.

Retired values

The values 0x8C114003 (WD_E_INVALIDPROCESSID), 0x8C114017 (WD_E_INVALIDTID), and 0x8C114019 (WD_E_THREADNOTFOUND) are reserved historical values, not errors emitted by the current declarations. Don't reuse them.

See also