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.
publicKeyHashType: const char* The last-observed pairing device ID, or
nullptr to clear it. This value isn’t authorization.
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
Preserves application-owned metadata. The first device recorded in an empty catalog becomes the default.publicKeyHash is a last-observed 40-character hexadecimal pairing device ID; pass nullptr to clear it. An empty or malformed hash returns E_INVALIDARG.
Saving a record doesn’t pair the device, verify its current identity, or grant access.
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.
