Skip to main content
Enumerates a saved device’s metadata namespaces. Introduced in: RIT 0.0.14-preview.

Syntax

Parameters

remoteDevice
Type: const char*
The saved device name or IP address, encoded as UTF-8. This operation acts on the current user’s local catalog. metadataNamespaceCount
Type: uint32_t*
Required output receiving the snapshot’s total namespace count. callback
Type: WdDeviceMetadataNamespaceCallback
The required result or enumeration callback. See Remarks for continuation and lifetime rules. context
Type: void*
Optional caller-owned context passed unchanged to the callback.

Return value

Type: HRESULT Returns S_OK on success; otherwise returns a failure HRESULT. Catalog operations also return catalog-specific errors described in Error codes.

Remarks

Includes empty namespaces and returns the total snapshot count. A missing device returns WD_E_DEVICE_NOTFOUND. It doesn’t create records or namespaces. A failed callback stops enumeration; no callback is invoked for an empty result. 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.

Requirements

See also

Last modified on November 25, 2026