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

# XStoreQueryAssociatedProductsForStoreIdResult

> XStoreQueryAssociatedProductsForStoreIdResult

# XStoreQueryAssociatedProductsForStoreIdResult

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

## Sintaxis

```cpp theme={null}
HRESULT XStoreQueryAssociatedProductsForStoreIdResult(  
         XAsyncBlock* async,  
         XStoreProductQueryHandle* productQueryHandle  
)  
```

### Parámetros

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

El `XAsyncBlock` que se pasa a [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync). Use el [XAsyncBlock](/reference/system/xasync/structs/xasyncblock) para comprobar el estado de la llamada y obtener los resultados.
Para obtener más información, consulte [XAsyncBlock](/reference/system/xasync/structs/xasyncblock).

*productQueryHandle*   \_Out\_\
Tipo: XStoreProductQueryHandle\*

Al devolverse, contiene un `XStoreProductQueryHandle` que representa la consulta. Pase el `XStoreProductQueryHandle` devuelto a [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery) para enumerar los productos que devolvió la consulta.

### Valor devuelto

Tipo: HRESULT

S\_OK si se realiza correctamente; de lo contrario, devuelve un código de error.

## Comentarios

Esta función de resultado recupera los resultados de la ejecución de [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync). Si el resultado es correcto, incluye una lista de productos asociados que puede enumerar con [XStoreEnumerateProductsQuery](/reference/system/xstore/functions/xstoreenumerateproductsquery). Llame a esta función después de [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync), normalmente en el contexto de una función de devolución de llamada.

Para ver un ejemplo de uso, consulte [XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync).

## 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)
[XStoreQueryAssociatedProductsForStoreIdAsync](/reference/system/xstore/functions/xstorequeryassociatedproductsforstoreidasync)\
[XStoreQueryEntitledProductsAsync](/reference/system/xstore/functions/xstorequeryentitledproductsasync)\
[XStoreQueryProductsAsync](/reference/system/xstore/functions/xstorequeryproductsasync)\
[XStoreQueryProductForCurrentGameAsync](/reference/system/xstore/functions/xstorequeryproductforcurrentgameasync)\
[XStoreQueryProductForPackageAsync](/reference/system/xstore/functions/xstorequeryproductforpackageasync)


## Related topics

- [XStore](/es/reference/system/xstore/xstore_members.md)
- [XStoreQueryAssociatedProductsResult](/es/reference/system/xstore/functions/xstorequeryassociatedproductsresult.md)
- [XStoreQueryProductsResult](/es/reference/system/xstore/functions/xstorequeryproductsresult.md)
- [XStoreQueryProductForPackageResult](/es/reference/system/xstore/functions/xstorequeryproductforpackageresult.md)
- [XStoreQueryEntitledProductsResult](/es/reference/system/xstore/functions/xstorequeryentitledproductsresult.md)
