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

# XUserPlatformRemoteConnectCancelPrompt

> 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`](/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler)

[`XUserPlatformRemoteConnectClosePromptEventHandler`](/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler)

[`XUserPlatformRemoteConnectSetEventHandlers`](/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers)

[`XUserPlatformRemoteConnectEventHandlers`](/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers)


## Related topics

- [XUserPlatformRemoteConnectClosePromptEventHandler](/reference/system/xuser/functions/xuserplatformremoteconnectcloseprompteventhandler.md)
- [XUserPlatformRemoteConnectShowPromptEventHandler](/reference/system/xuser/functions/xuserplatformremoteconnectshowprompteventhandler.md)
- [XUserPlatformRemoteConnectEventHandlers](/reference/system/xuser/structs/xuserplatformremoteconnecteventhandlers.md)
- [XUserPlatformRemoteConnectSetEventHandlers](/reference/system/xuser/functions/xuserplatformremoteconnectseteventhandlers.md)
- [XUserPlatformOperationResult](/reference/system/xuser/enums/XUserPlatformOperationResult.md)
