Syntax
Parameters
remoteDeviceSubstringType: const char* Optional substring filter for saved device names. Pass
nullptr or an empty string for all records.
deviceCountType: uint32_t* Required output receiving the number of matching saved records in the snapshot.
callbackType: WdDeviceInfoCallback 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 null or empty substring selects every record. Matching folds ASCII letters; non-ASCII UTF-8 bytes compare unchanged. Wildcards aren’t supported.deviceCount receives the number of matching records in the snapshot, not the number of callbacks completed before an early stop. No callback is invoked for an empty result. A failed callback result stops enumeration and is returned.
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.
