~~NOTOC~~ [[zone_control_api]] > [[BS2_SetCheckGlobalAPBViolationHandler]] ---- ===== BS2_SetCheckGlobalAPBViolationHandler ===== [+ 2.5.0] Registers callback function for global determination when an APB violation alarm occurs.\\ ==== Declaration ==== #include "BS_API.h" int BS2_SetCheckGlobalAPBViolationHandler(void* context, OnCheckGlobalAPBViolation ptrCheckGlobalAPBViolation); [[zone_control_api#OnCheckGlobalAPBViolation|See OnCheckGlobalAPBViolation callback function]] ==== Parameter ==== * [In] ''//context//'' : Context * [In] ''//ptrCheckGlobalAPBViolation//'' : Callback function called for global determination when Anti Passback alarm occurs **NOTE**\\ To use Global Anti Passback service, [[configuration api#BS2AuthConfig|BS2AuthConfig]] useGloable APB should be set to True. ==== Return Value ==== If successfully done, ''BS_SDK_SUCCESS'' will be returned. \\ If there is an error, the corresponding error code will be returned. ==== See Also === [[BS2_CheckGlobalAPBViolation]]