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

# XPackageGetPackageKind

> XPackageGetPackageKind

# XPackageGetPackageKind

패키지 식별자로 식별되는 설치 패키지의 유형을 반환합니다.

## 구문

```cpp theme={null}
HRESULT XPackageGetPackageKind(  
         _In_z_ const char* packageIdentifier,  
         _Out_ XPackageKind* kind  
)
```

### 매개 변수

*packageIdentifier*   \_In\_z\_\
형식: char\*

디스크에 설치된 패키지를 고유하게 식별하는 문자열입니다. 패키지 식별자에 대한 자세한 내용은 [다운로드 가능 콘텐츠(DLC) 관리 및 라이선스](/ko/publishing/xstore-commerce/xstore-dlc)를 참조하세요.

*kind*   \_Out\_\
형식: [XPackageKind](/ko/reference/system/xpackage/enums/xpackagekind)\*

반환 시 패키지를 설명하는 [XPackageKind](/ko/reference/system/xpackage/enums/xpackagekind) 값을 포함합니다.

### 반환 값

형식: HRESULT

성공하면 `S_OK`를 반환하고, 그렇지 않으면 오류 코드를 반환합니다.

## 설명

패키지 식별자가 있고 해당 식별자가 게임, 다운로드 가능 콘텐츠(DLC) 패키지 또는 Publisher Content 패키지 중 무엇을 가리키는지 확인해야 할 때 `XPackageGetPackageKind`를 사용합니다. 작업할 유형을 이미 알고 있는 경우에는 열거 시 일치하는 패키지만 반환되도록 해당 [XPackageKind](/ko/reference/system/xpackage/enums/xpackagekind) 값을 [XPackageEnumeratePackages](/ko/reference/system/xpackage/functions/xpackageenumeratepackages)에 전달하는 것이 좋습니다.

다음 코드 예제를 참조하세요.

```cpp theme={null}
XPackageKind kind;
HRESULT hr = XPackageGetPackageKind(packageIdentifier, &kind);
if (SUCCEEDED(hr) && kind == XPackageKind::PublisherContent)
{
    // Handle Publisher Content.
}
```

## 요구 사항

**헤더:** XPackage.h

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

## 함께 보기

[XPackage](/ko/reference/system/xpackage/xpackage_members)\
[XPackageKind](/ko/reference/system/xpackage/enums/xpackagekind)\
[XPackageEnumeratePackages](/ko/reference/system/xpackage/functions/xpackageenumeratepackages)\
[Publisher Content 패키지](/ko/build/core-features/common/packaging/packaging-publisher-content)


## Related topics

- [Publisher Content 패키지](/ko/build/core-features/common/packaging/packaging-publisher-content.md)
- [XPackage](/ko/reference/system/xpackage/xpackage_members.md)
- [XPackageKind](/ko/reference/system/xpackage/enums/xpackagekind.md)
- [XPackageGetCurrentProcessPackageIdentifier](/ko/reference/system/xpackage/functions/xpackagegetcurrentprocesspackageidentifier.md)
- [XPackageGetInstallationProgress](/ko/reference/system/xpackage/functions/xpackagegetinstallationprogress.md)
