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.
metadataNamespaceType: const char* The UTF-8 application-owned namespace name. An empty string selects the built-in namespace where supported.
propertyNameType: const char* The UTF-8 property name.
propertyFoundType: bool* Required output indicating whether the property exists.
callbackType: WdStringResultCallback The required result or enumeration callback. See Remarks for continuation and lifetime rules.
contextType: void* Optional caller-owned context passed unchanged to the callback.
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 device returnsWD_E_DEVICE_NOTFOUND. A missing namespace or property returns S_OK, sets propertyFound to false, and doesn’t invoke the callback. A present property sets it to true and invokes the required callback once. Copy the JSON string during the callback.
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.
