Syntax
Parameters
deviceIdCountType: uint32_t* Required output receiving the total local pairing ID count.
callbackType: WdDeviceIdCallback 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 device ID is the normalized 40-character hexadecimal identifier stored by local pairing authorization. IDs are independent of saved device records and don’t prove the current identity at a saved address. The count pointer and callback are required. The count describes the snapshot; no callback is invoked for an empty result. A failed callback result stops enumeration. The callback’s string is valid only during the callback. Saved-device APIs and pairing-ID APIs change different local stores. They don’t replace the explicitremoteDevice argument of a remote API call; callers that want default selection must resolve it themselves.
