Syntax
Parameters
remoteDeviceType: const char* The saved device name or IP address, encoded as UTF-8. This operation acts on the current user’s local catalog.
newRemoteDeviceType: const char* The new connectable device name or IP address (UTF-8).
Return value
Type: HRESULT ReturnsS_OK on success; otherwise returns a failure HRESULT. Catalog operations also return catalog-specific errors described in Error codes.
Remarks
A missing source returnsWD_E_DEVICE_NOTFOUND; an existing destination returns WD_E_DEVICE_EXISTS. The new value is a connectable device name or address, not an arbitrary display label. Renaming doesn’t change remote network configuration or pairing authorization.
Saved-device APIs and pairing-ID APIs change different local stores. They don’t replace the explicit remoteDevice argument of a remote API call; callers that want default selection must resolve it themselves.
