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

# XUserDeviceAssociationChangedCallback

> XUserDeviceAssociationChangedCallback

# XUserDeviceAssociationChangedCallback

사용자-장치 연결이 변경될 때 호출되는 콜백입니다.

## 구문

```cpp theme={null}
void XUserDeviceAssociationChangedCallback(  
         void* context,  
         const XUserDeviceAssociationChange* change  
)  
```

### 매개변수

*context*   \_In\_opt\_\
형식: void\*

콜백 등록 시 응용 프로그램이 정의하고 [XUserRegisterForDeviceAssociationChanged](/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged)에 보내는 컨텍스트입니다.

*change*   \_In\_\
형식: [XUserDeviceAssociationChange\*](/reference/system/xuser/structs/xuserdeviceassociationchange)

이전 및 새 장치 연결을 포함하는 구조체입니다.

### 반환값

형식: void

## 설명

사용자 장치 연결 변경 이벤트에 대한 콜백을 등록하려면 [XUserRegisterForDeviceAssociationChanged](/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged)를 호출합니다. 이 함수는 **XUserDeviceAssociationChangedCallback** 함수에 대한 포인터를 인수로 받습니다. 함수는 콜백 함수에 대한 포인터를 반환합니다.

## 요구 사항

**헤더:** XUser.h

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

**지원되는 플랫폼:** Windows, XBOX One 계열 콘솔 및 XBOX Series 콘솔

## 함께 보기

[XUser](/reference/system/xuser/xuser_members)

[XUserRegisterForDeviceAssociationChanged](/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged)


## Related topics

- [XUserDeviceAssociationChange](/ko/reference/system/xuser/structs/xuserdeviceassociationchange.md)
- [XUserFindForDevice](/ko/reference/system/xuser/functions/xuserfindfordevice.md)
- [XUserRegisterForDeviceAssociationChanged](/ko/reference/system/xuser/functions/xuserregisterfordeviceassociationchanged.md)
- [사용자-컨트롤러 연결이 언제 발생하나요?](/ko/build/core-features/common/user/users-timing-of-user-to-device-association.md)
- [XR-115 플레이 중 사용자 또는 컨트롤러 추가 및 제거](/ko/publishing/certification/xr/xr-115.md)
