;------------- Global ------------

[Global]

;cBLTrustedApp triggers flags
#BL_fExclOpenFiles     =0x01
#BL_fExclNet           =0x02
#BL_fExclNetHost       =0x04
#BL_fExclNetPort       =0x08
#BL_fExclBehavior      =0x10
#BL_fExclRegistry      =0x20

;cDetectExclude triggers flags
#AVS_fObjectMask       =0x01
#AVS_fVerdictMask      =0x02
#AVS_fTaskList         =0x04
#AVS_fVerdictPath      =0x08

; ePasswordConfirmReason
#pwdc_OpenWindow       = 0
#pwdc_SaveSettings     = 1
#pwdc_StopTask         = 2
#pwdc_Exit             = 3
#pwdc_StopService      = 4
#pwdc_Activate         = 5
#pwdc_SaveStateAndSettings = 6

; enSelfProtectionNotifyType
#espAccessToProcess    = 1
#espAccessToFile       = 2
#espAccessToReg        = 3

$IsExclObjectMask_Avail          =Triggers,bits(#AVS_fObjectMask),!!
$IsExclVerdictMask_Avail         =Triggers,bits(#AVS_fVerdictMask),!!
$IsExclTaskList_Avail            =Triggers,bits(#AVS_fTaskList),!!
$IsExclObjectVerdictMask_Avail   =Triggers,bits(#AVS_fObjectMask|#AVS_fVerdictMask),!!

$IsExclusion_ObjectMask_Correct  =$IsExclObjectMask_Avail,ExclusionEdit_IsValid_ObjectMask
$IsExclusion_VerdictMask_Correct =$IsExclVerdictMask_Avail,ExclusionEdit_IsValid_VerdictMask
$IsExclusion_TaskList_Correct    =$IsExclTaskList_Avail,ExclusionEdit_IsValid_TaskList

$IsTrustedApp_HostAvail          = nTriggers,bits(#BL_fExclNet|#BL_fExclNetHost),=,#BL_fExclNet|#BL_fExclNetHost,IsTrustedApp_HostAvail
$IsTrustedApp_PortAvail          = nTriggers,bits(#BL_fExclNet|#BL_fExclNetPort),=,#BL_fExclNet|#BL_fExclNetPort,IsTrustedApp_PortAvail

$TrustedAppDescr=$(nTriggers,bits(#BL_fExclOpenFiles),!!,TrustedAppDescr_ExclOpenFiles)$(nTriggers,bits(#BL_fExclBehavior),!!,TrustedAppDescr_ExclBehavior)$(nTriggers,bits(#BL_fExclRegistry),!!,TrustedAppDescr_ExclRegistry)$(nTriggers,bits(#BL_fExclNet),!!,TrustedAppDescr_ExclNet)

;-------------------------

[ExclusionEdit_IsValid_ObjectMask]
1=$(Object.Mask,!!)
0=1

[ExclusionEdit_IsValid_VerdictMask]
1=$(VerdictMask,!!)
0=1

[ExclusionEdit_IsValid_TaskList]
1=$(TaskList,size)
0=1

[ExclusionList_ObjectMask]
1=$(Object.Mask)
default=*

[ExclusionList_VerdictMask]
1=$(VerdictMask)
default=*

[IsShowSavePassword]
#pwdc_Exit =0
default    =1

[TrustedAppDescr_ExclNetHost_Specify]
1=\ <a ExclNetHost_Specify v(dialog:ExclNetHostEdit)>$(nHost,TrustedAppDescr_ExclNetHost_Specify_1)</a>

[TrustedAppDescr_ExclNetPort_Specify]
1=\ <a ExclNetPort_Specify v(dialog:ExclNetPortEdit)>$(nPort,TrustedAppDescr_ExclNetPort_Specify_1)</a>

[ExclusionMasksDescr_VerdictPathMask]
1=\ $(VerdictPath.Mask)

[ExclusionVerdictPathMaskEdit_EnableOk]
1=$(VerdictPath.Mask,EnableIfNotZero)

[ExclusionMaskIsAll]
<empty> = 1
*       = 1
*.*     = 1

[ExclusionObjectMaskIsAll]
1       = $(Object.Mask,ExclusionMaskIsAll)
default = 1

[ExclusionVerdictMaskIsAll]
1       = $(VerdictMask,ExclusionMaskIsAll)
default = 1

[ExclusionObjectMask_CheckVerdictIsAll]
1   = $(Triggers,bits(#AVS_fVerdictMask),!!,ExclusionVerdictMaskIsAll)

[ExclusionVerdictMask_CheckObjectIsAll]
1   = $(Triggers,bits(#AVS_fObjectMask),!!,ExclusionObjectMaskIsAll)

[IsTrustedApp_HostAvail]
1       = $(nHost,!!)
default = 1

[IsTrustedApp_PortAvail]
1       = $(nPort,!!)
default = 1

;-------------------------

[ProtectionEventlogItem]
<empty>   = !NOLOC! StatusId($(StatusId)) EventID($(EventID))
default   = $(EventID,notification)
