Programming with Reflection
LockProfile method
Syntax object.LockProfile AllowUnlock, [Password]
Locks the current command profile, disallowing calls to SetCommandProfile and SetCommandGroupProfile.
AllowUnlock Argument Type: Boolean
Required
Specifies whether a subsequent call to UnlockProfile is allowed. If True, the second argument (Password) is required. If False, the second argument is ignored.
Password Argument Type: String
Optional
Specifies a password. Must be supplied if AllowUnlock is True. The same password must be used in subsequent calls to UnlockProfile.