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

# XPackageIsPackagedProcess

> XPackageIsPackagedProcess

# XPackageIsPackagedProcess

현재 프로세스에 설치 ID가 있는지 여부를 나타내는 부울을 반환합니다.

## 구문

```cpp theme={null}
bool XPackageIsPackagedProcess(  
)  
```

### 매개 변수

없음.

### 반환 값

형식: bool

프로세스에 설치 ID가 있으면 true를 반환합니다. 그렇지 않으면 false를 반환합니다.

## 설명

게임이 완전히 설치되었는지 여부를 확인할 수 있습니다. 다음 코드 예제는 패키지된 MSICVC 게임과 느슨한 배포에 대해 작동합니다. 반환 값 `bool *isInstalled`는 게임이 완전히 설치된 경우 true로 설정됩니다.

```cpp theme={null}
HRESULT IsPackageCompletelyInstalled(bool *isInstalled)
{
    if (XPackageIsPackagedProcess())
    {
        char id[XPACKAGE_IDENTIFIER_MAX_LENGTH];
        HRESULT hr = XPackageGetCurrentProcessPackageIdentifier(_countof(id), id);
        if (FAILED(hr)) return hr;

        XPackageInstallationMonitorHandle monitor;
        hr = XPackageCreateInstallationMonitor(id, 0, nullptr, 0, nullptr, &monitor);
        if (FAILED(hr)) return hr;

        XPackageInstallationProgress progress;
        XPackageGetInstallationProgress(monitor, &progress);

        *isInstalled = (progress.completed);

        XPackageCloseInstallationMonitorHandle(monitor);
    }
    else
    {
        *isInstalled = true;
    }

    return S_OK;
}
```

## 요구 사항

**헤더:** XPackage.h

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

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

## 개념 문서

* [XBOX Development Kit에 타이틀 배포](/home/setup-install/concepts/deployment)

## 함께 보기

[패키징 개요](/build/core-features/common/packaging/overviews/packaging)<br />[스트리밍 설치 및 Intelligent Delivery](/build/core-features/common/packaging/overviews/streaming_install-intelligent_delivery)<br />[XPackage](/reference/system/xpackage/xpackage_members)
