text: /**************************************************************************/
  /*                                                                        */
  /*       Copyright (c) Microsoft Corporation. All rights reserved.        */
  /*                                                                        */
  /*       This software is licensed under the Microsoft Software License   */
  /*       Terms for Microsoft Azure RTOS. Full text of the license can be  */
  /*       found in the LICENSE file at https://aka.ms/AzureRTOS_EULA       */
  /*       and in the root directory of this software.                      */
  /*                                                                        */
  /**************************************************************************/
  
  
  /**************************************************************************/
  /**************************************************************************/
  /**                                                                       */
  /** GUIX Component                                                        */
  /**                                                                       */
  /**   Widget Management (Widget)                                          */
  /**                                                                       */
  /**************************************************************************/
  
  #define GX_SOURCE_CODE
  
  
  /* Include necessary system files.  */
  
  #include "gx_api.h"
  #include "gx_widget.h"
  
  /**************************************************************************/
  /*                                                                        */
  /*  FUNCTION                                               RELEASE        */
  /*                                                                        */
  /*    _gxe_widget_status_test                             PORTABLE C      */
  /*                                                           6.0          */
  /*  AUTHOR                                                                */
  /*                                                                        */
  /*    Kenneth Maxwell, Microsoft Corporation                              */
  /*                                                                        */
  /*  DESCRIPTION                                                           */
  /*                                                                        */
  /*    This function checks for errors in the widget status test function  */
  /*    call.                                                               */
  /*                                                                        */
  /*  INPUT                                                                 */
  /*                                                                        */
  /*    widget                                Pointer to widget             */
  /*    status                                Status to test                */
  /*    return_test                           Pointer to destination for    */
  /*                                          result of test                */
  /*                                                                        */
  /*  OUTPUT                                                                */
  /*                                                                        */
  /*    status                                Completion status             */
  /*                                                                        */
  /*  CALLS                                                                 */
  /*                                                                        */
  /*    _gx_widget_status_test                Actual widget status test     */
  /*                                            function                    */
  /*                                                                        */
  /*  CALLED BY                                                             */
  /*                                                                        */
  /*    Application Code                                                    */
  /*                                                                        */
  /*  RELEASE HISTORY                                                       */
  /*                                                                        */
  /*    DATE              NAME                      DESCRIPTION             */
  /*                                                                        */
  /*  05-19-2020     Kenneth Maxwell          Initial Version 6.0           */
  /*                                                                        */
  /**************************************************************************/
  UINT _gxe_widget_status_test(GX_WIDGET *widget, ULONG status, GX_BOOL *return_test)
  {
  UINT return_value;
  
      /* Check for invalid input pointers.  */
      if ((widget == GX_NULL) || (return_test == GX_NULL))
      {
          return(GX_PTR_ERROR);
      }
  
      /* Check for invalid widget. */
      if (widget -> gx_widget_type == 0)
      {
          return(GX_INVALID_WIDGET);
      }
  
      /* Call actual widget status test function.  */
      return_value = _gx_widget_status_test(widget, status, return_test);
  
      /* Return successful completion.  */
      return(return_value);
  }
  
  