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

# XStoreDownloadAndInstallPackageUpdatesAsync

> XStoreDownloadAndInstallPackageUpdatesAsync

# XStoreDownloadAndInstallPackageUpdatesAsync

지정된 스토어 패키지의 업데이트를 다운로드하고 설치합니다.

## 구문

```cpp theme={null}
HRESULT XStoreDownloadAndInstallPackageUpdatesAsync(  
         const XStoreContextHandle storeContextHandle,  
         const char** packageIdentifiers,  
         size_t packageIdentifiersCount,  
         XAsyncBlock* async  
)  
```

### 매개 변수

*storeContextHandle*   \_In\_\
형식: XStoreContextHandle

[XStoreCreateContext](/reference/system/xstore/functions/xstorecreatecontext)가 반환한 사용자의 스토어 컨텍스트 핸들입니다.

*packageIdentifiers*   \_In\_z\_count\_(packageIdentifiersCount)\
형식: char\*\*

패키지 식별자 문자열 목록입니다.
패키지 식별자는 Microsoft Store의 패키지를 고유하게 식별합니다. 패키지 식별자에 대한 자세한 내용은 [다운로드 가능한 콘텐츠(DLC) 관리 및 라이선스](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-manage-and-license-optional-packages)를 참조하세요.

*packageIdentifiersCount*   \_In\_\
형식: size\_t

`packageIdentifiers`의 식별자 수입니다.

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

수행 중인 비동기 작업을 정의하는 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)입니다. [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)을 사용하여 호출의 상태를 폴링하고 호출 결과를 검색할 수 있습니다. 자세한 내용은 [XAsyncBlock](/reference/system/xasync/structs/xasyncblock)을 참조하세요.

### 반환 값

형식: [HRESULT](https://learn.microsoft.com/openspecs/windows_protocols/ms-erref/0642cb2f-2075-4469-918c-4441e69c548a)

HRESULT 성공 또는 오류 코드입니다.

## 설명

이 함수는 지정된 스토어 패키지의 업데이트를 다운로드하고 설치합니다.

<Note>이 함수를 호출하고 게임의 업데이트를 찾으면 설치가 진행될 수 있도록 게임이 즉시 종료됩니다.</Note>

다운로드 및 설치 업데이트의 결과를 검색하려면 이 함수를 호출한 후 [XStoreDownloadAndInstallPackageUpdatesResult](/reference/system/xstore/functions/xstoredownloadandinstallpackageupdatesresult)를 호출합니다.
사용 예제는 [XStoreQueryGameAndDlcPackageUpdatesAsync](/reference/system/xstore/functions/xstorequerygameanddlcpackageupdatesasync)를 참조하세요.

이 API를 실행 중인 게임에서 호출하면 다운로드는 높은 우선 순위이며 `storeIds` 매개 변수에 지정된 순서대로 큐의 시작 부분으로 이동합니다.

## 요구 사항

**헤더:** XStore.h(XGameRuntime.h에 포함됨)

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 설명서

* [Checking for updates](https://learn.microsoft.com/gaming/gdk/docs/store/commerce/fundamentals/xstore-checking-for-updates)

## 참고 항목

[XStore](/reference/system/xstore/xstore_members)\
[XStoreDownloadAndInstallPackageUpdatesResult](/reference/system/xstore/functions/xstoredownloadandinstallpackageupdatesresult)


## Related topics

- [XStoreDownloadAndInstallPackageUpdatesResult](/ko/reference/system/xstore/functions/xstoredownloadandinstallpackageupdatesresult.md)
- [XStoreDownloadPackageUpdatesAsync](/ko/reference/system/xstore/functions/xstoredownloadpackageupdatesasync.md)
- [업데이트 확인](/ko/publishing/xstore-commerce/xstore-checking-updates.md)
- [XStore](/ko/reference/system/xstore/xstore_members.md)
- [GDK용 Unity C# API 래퍼](/ko/build/gdk-and-engines/unity/unity-api-wrappers.md)
