~~NOTOC~~
[[zone_control_api]] > [[BS2_SetCheckGlobalAPBViolationHandler]]
----
===== BS2_SetCheckGlobalAPBViolationHandler =====
[+ 2.5.0] 안티패스백 경보가 발생했을 때 글로벌 판정을 위해 호출되는 콜백 함수를 등록합니다.\\
==== 함수 ====
#include "BS_API.h"
int BS2_SetCheckGlobalAPBViolationHandler(void* context, OnCheckGlobalAPBViolation ptrCheckGlobalAPBViolation);
[[zone_control_api#OnCheckGlobalAPBViolation|OnCheckGlobalAPBViolation 콜백함수 보기]]
==== 파라미터 ====
* [In] ''//context//'' : Context
* [In] ''//ptrCheckGlobalAPBViolation//'' : 안티패스백 경보가 발생했을 때 글로벌 판정을 위해 호출되는 콜백 함수
**참고**\\
글로벌 안티패스백 서비스를 이용하기 위해서는 [[configuration api#BS2AuthConfig|BS2AuthConfig]]의 useGlobalAPB가 true로 설정되어 있어야 합니다.
==== 반환값 ====
성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.
==== 함께 보기 ====
[[BS2_CheckGlobalAPBViolation]]