/* Get question id info from the input opcode header. */
EFI_QUESTION_ID GetQuestionIdInfo(IN EFI_IFR_OP_HEADER *OpCode)
/* Get question id info from the input opcode header. */
EFI_QUESTION_ID GetQuestionIdInfo(IN EFI_IFR_OP_HEADER *OpCode)
{
  EFI_IFR_QUESTION_HEADER  *QuestionHeader;
  if (OpCode->Length < sizeof (EFI_IFR_OP_HEADER) + sizeof (EFI_IFR_QUESTION_HEADER)) {
    return 0;
  }
  QuestionHeader = (EFI_IFR_QUESTION_HEADER *)((UINT8 *)OpCode + sizeof (EFI_IFR_OP_HEADER));
  return QuestionHeader->QuestionId;
}