> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XUserPlatformRemoteConnectCancelPrompt

> XUserPlatformRemoteConnectCancelPrompt

Signal to XUser that the remote connect prompt has been dismissed by the user.

## Syntax

```cpp theme={null}
STDAPI  XUserPlatformRemoteConnectCancelPrompt(
    _In_ XUserPlatformOperation operation
) noexcept;
```

### Parameters

*operation*\
Type: XUserPlatformOperation

The handle for this operation

### Return value

Type: HRESULT

Result code for this API operation

## Remarks

This should be called after a XUserPlatformRemoteConnectShowPromptEventHandler if the user dismisses the prompt.

The whole remote connect process will be cancelled and the starting XUserAdd operation will complete with E\_ABORT.

TheXUserPlatformRemoteConnectClosePromptEventHandler will be called as normal.

## Requirements

**Header:** XUser.h

**Library:** xgameruntime.lib

**Supported platforms:** Supported on Steam Deck

## See also

[`XUserPlatformRemoteConnectShowPromptEventHandler`](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler)

[`XUserPlatformRemoteConnectClosePromptEventHandler`](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler)

[`XUserPlatformRemoteConnectSetEventHandlers`](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers)

[`XUserPlatformRemoteConnectEventHandlers`](https://docs.xbox.com/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)


## Related topics

- [XUserPlatformRemoteConnectClosePromptEventHandler](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
- [XUserPlatformRemoteConnectEventHandlers](https://docs.xbox.com/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers.md)
- [XUserPlatformRemoteConnectSetEventHandlers](https://docs.xbox.com/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers.md)
- [XUser (API contents)](https://docs.xbox.com/reference/system/xuser/xuser_members.md)
