Syntax
Parameters
deviceFoundType: bool* Required output indicating whether a default device is selected.
callbackType: WdDeviceInfoResultCallback 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
BothdeviceFound and the callback are required. With no default, the call succeeds, sets deviceFound to false, and doesn’t invoke the callback. With a default, the callback receives its record. This local query doesn’t probe connectivity or authorization.
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.
