> ## 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.

# XStoreShowPurchaseUIResult

> XStoreShowPurchaseUIResult

# XStoreShowPurchaseUIResult

Obtiene los resultados de una llamada a [XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync).

## Sintaxis

```cpp theme={null}
HRESULT XStoreShowPurchaseUIResult(  
         XAsyncBlock* async  
)  
```

### Parámetros

*async*   \_Inout\_\
Tipo: [XAsyncBlock\*](/reference/system/xasync/structs/xasyncblock)

El XAsyncBlock que se pasó a [XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync). El [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) se puede usar para sondear el estado de la llamada y recuperar los resultados de la llamada. Consulte [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) para obtener más información.

### Valor devuelto

Tipo: HRESULT

Código HRESULT de éxito o de error.

S\_OK indica que la compra se completó, pero siempre debe actualizar las licencias y los datos de colecciones del usuario antes de conceder acceso al contenido

E\_ABORT indica que el usuario canceló el flujo de compra.

## Comentarios

Esta función de resultado permite recuperar los resultados de ejecución de [XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync). Por lo tanto, se debe llamar a esta función después de haber llamado a [XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync), normalmente en el contexto de una función de devolución de llamada. Esta función puede ser especialmente útil para averiguar por qué no se mostró la interfaz de usuario en casos de error.

Consulte [XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync) para ver un ejemplo de uso.

## Requisitos

**Encabezado:** XStore.h (incluido en XGameRuntime.h)

**Biblioteca:** xgameruntime.lib

**Plataformas compatibles:** Windows, consolas de la familia XBOX One y consolas XBOX Series

## Consulte también

[XStore](/reference/system/xstore/xstore_members)\
[XStoreShowPurchaseUIAsync](/reference/system/xstore/functions/xstoreshowpurchaseuiasync)


## Related topics

- [XStoreShowPurchaseUIAsync](/es/reference/system/xstore/functions/xstoreshowpurchaseuiasync.md)
- [XStore](/es/reference/system/xstore/xstore_members.md)
- [Contenedores de API de C# de Unity para el GDK](/es/build/gdk-and-engines/unity/unity-api-wrappers.md)
- [XStoreGetUserPurchaseIdResult](/es/reference/system/xstore/functions/xstoregetuserpurchaseidresult.md)
- [XStoreShowGiftingUIResult](/es/reference/system/xstore/functions/xstoreshowgiftinguiresult.md)
