/* This sample handler checks that a static data buffer can be accessed from a given context buffer. */
PRM_HANDLER_EXPORT(CheckStaticDataBufferPrmHandler)
/* This sample handler checks that a static data buffer can be accessed from a given context buffer. */
PRM_HANDLER_EXPORT(CheckStaticDataBufferPrmHandler)
{
    return EFI_INVALID_PARAMETER;
  }
  if (ContextBuffer->StaticDataBuffer == NULL) {
    return EFI_INVALID_PARAMETER;
  }
  if (
      (ContextBuffer->Signature != PRM_CONTEXT_BUFFER_SIGNATURE) ||
      (ContextBuffer->StaticDataBuffer->Header.Signature != PRM_DATA_BUFFER_HEADER_SIGNATURE))
  {
    return EFI_NOT_FOUND;
  }
  return EFI_SUCCESS;
}