/* VariableLockProtocol callback to lock the variables referenced by DynamicHii PCDs with RO property set in *.dsc. */
VOID EFIAPI VariableLockCallBack(IN EFI_EVENT Event, IN VOID *Context)
/* VariableLockProtocol callback to lock the variables referenced by DynamicHii PCDs with RO property set in *.dsc. */
VOID EFIAPI VariableLockCallBack(IN EFI_EVENT Event, IN VOID *Context)
{
  EFI_STATUS                    Status;
  EDKII_VARIABLE_LOCK_PROTOCOL  *VariableLock;
  Status = gBS->LocateProtocol (&gEdkiiVariableLockProtocolGuid, NULL, (VOID **)&VariableLock);
  if (!EFI_ERROR (Status)) {
    VariableLockDynamicHiiPcd (TRUE, VariableLock);
    VariableLockDynamicHiiPcd (FALSE, VariableLock);
  }
}