(Above) the configuration setting and below some code example with a "Watch" (memory dump) on some of the constants and variables.
Evaluating the configuration locks are actually a "bit comparison".
I suggest the following code as a "functional" alternative example.
Code:
If False = (MYoAD_Configuration.Locks And ADConfigurationLockType_AD_LOCK_COLOR_PROPERTIES) _
Then
MsgBox ("Configuration is not locked for Color Properties")
Else
MsgBox ("Configuration is locked for Color Properties")
End If